/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* CSS Variables */
:root {
  --primary-color: #007BFF;
  --primary-color-dark: #0056b3;
  --danger-color: #dc3545;
  --danger-color-dark: #a71d2a;
  --bg-color: #f5f5f5;
  --white: #ffffff;
  --text-color: #333;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Body */
body {
  font-family: Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  padding: 20px;
}

/* Header */
header {
  background-color: var(--white);
  padding: 15px 20px;
  box-shadow: 0 2px 4px var(--shadow-color);
  margin-bottom: 20px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.header-content .logo {
  width: 60px;
  height: auto;
  margin-right: 15px;
}

h1 {
  font-size: 2em;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Sections */
section {
  background-color: var(--white);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px var(--shadow-color);
}

/* Section Headings */
h2 {
  margin-bottom: 15px;
  font-size: 1.8em;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

/* Form Styles */
.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
}

.checkbox-group {
  display: flex;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.2s;
}

.btn:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px);
}

.btn.danger {
  background-color: var(--danger-color);
}

.btn.danger:hover {
  background-color: var(--danger-color-dark);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

table th,
table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

table th {
  background-color: #f0f0f0;
}

/* Lists */
ul.job-list,
ul.db-list {
  list-style: none;
  padding: 0;
}

ul.job-list li,
ul.db-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

ul.job-list li:last-child,
ul.db-list li:last-child {
  border-bottom: none;
}

.add-db-form {
  margin-top: 15px;
}

/* Flash Messages */
.flash-messages {
  margin-bottom: 20px;
}

.flash-message {
  background-color: #fffae6;
  border: 1px solid #ffe58f;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* Utility Classes */
.hidden {
  display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-content .logo {
    margin-bottom: 10px;
  }

  h1 {
    font-size: 1.8em;
  }
  
  h2 {
    font-size: 1.5em;
  }
  
  /* Make tables scrollable on small devices */
  .table-responsive {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  
  h1 {
    font-size: 1.5em;
  }
  
  h2 {
    font-size: 1.3em;
  }
  
  .btn {
    padding: 8px 16px;
    font-size: 0.9em;
  }
}
