/* Stili comuni per CV Man */

/* Reset e base */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #121212;
  color: #fff;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: #1e1e1e;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}

.sidebar img {
  width: 160px;
  margin: 0 auto 20px;
  display: block;
}

.sidebar a {
  color: #bbb;
  text-decoration: none;
  display: block;
  padding: 10px;
  border-radius: 5px;
}

.sidebar a.active, .sidebar a:hover {
  background: #333;
  color: #fff;
}

/* Main content */
.main {
  margin-left: 260px;
  padding: 20px;
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #333;
}

.topbar .controls {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Dark mode toggle */
.dark-mode {
  margin-top: auto;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #bbb;
}

input[type="checkbox"] {
  appearance: none;
  width: 40px;
  height: 20px;
  background: #333;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
}

input[type="checkbox"]:checked {
  background: #1a73e8;
}

input[type="checkbox"]:before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  background: #fff;
  transition: 0.3s;
}

input[type="checkbox"]:checked:before {
  left: 22px;
}

/* Cards */
.cards {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.card {
  flex: 1;
  background: #1e1e1e;
  padding: 20px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
}

/* Buttons */
.action-btn {
  background: #1a73e8;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 12px 15px;
  background: #252525;
  color: #fff;
  font-weight: 600;
}

td {
  padding: 12px 15px;
  border-bottom: 1px solid #333;
}

tr:hover td {
  background: #2a2a2a;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  text-align: center;
}

.status-success, .status-completed, .status-active, .status-revised {
  background: #4caf50;
  color: #000;
}

.status-warning, .status-pending {
  background: #ff9800;
  color: #000;
}

.status-error, .status-failed, .status-rejected, .status-inactive {
  background: #f44336;
  color: #fff;
}

.status-info {
  background: #2196f3;
  color: #fff;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px;
  background: #252525;
  border: 1px solid #333;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  box-sizing: border-box;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: #1a73e8;
  outline: none;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  font-size: 14px;
}

.breadcrumb a {
  color: #007bff;
  text-decoration: none;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.pagination-info {
  font-size: 14px;
  color: #888;
}

.pagination-controls {
  display: flex;
  gap: 5px;
}

.pagination-controls button {
  background: #333;
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  cursor: pointer;
}

.pagination-controls button.active {
  background: #007bff;
}

/* Animations */
@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}