/* =======================
   ADMIN & INLOGGNING
======================= */
.login-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    background: linear-gradient(rgba(17, 25, 39, 0.8), rgba(17, 25, 39, 0.9)), url("content/hero-bg.jpg") no-repeat center center/cover;
  }
  
  .login-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2.5rem;
    background-color: rgba(30, 40, 56, 0.85);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(30, 144, 255, 0.2);
  }
  
  .login-container h2 {
    font-family: "Orbitron", sans-serif;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
  }
  
  .login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .form-group label {
    color: var(--light-text);
    font-weight: 500;
  }
  
  .form-group input {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(30, 144, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(30, 40, 56, 0.7);
    color: var(--light-text);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  
  .form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(30, 144, 255, 0.4);
  }
  
  .login-button {
    margin-top: 1rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-blue), #1564c0);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.4);
  }
  
  .login-button:hover {
    background: linear-gradient(135deg, #1e90ff, #0e5cb2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.6);
  }
  
  .login-button:active {
    transform: translateY(0);
  }
  
  .error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
  }
  
  /* =======================
     DASHBOARD
  ======================= */
  .dashboard-header {
    background-color: var(--primary-blue);
    padding: 1.5rem 0;
    color: white;
    margin-bottom: 2rem;
  }
  
  .dashboard-header h1 {
    font-family: "Orbitron", sans-serif;
    margin: 0;
  }
  
  .dashboard-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .dashboard-controls {
    display: flex;
    gap: 1rem;
  }
  
  .logout-button {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .logout-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
  }
  
  .dashboard-container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
    margin-bottom: 4rem;
  }
  
  .dashboard-sidebar {
    background-color: rgba(30, 40, 56, 0.85);
    border-radius: 12px;
    padding: 1.5rem;
  }
  
  .dashboard-sidebar h3 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(108, 117, 125, 0.2);
  }
  
  .sidebar-menu {
    list-style: none;
    padding: 0;
  }
  
  .sidebar-menu li {
    margin-bottom: 0.8rem;
  }
  
  .sidebar-menu a {
    display: block;
    color: var(--light-text);
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
  }
  
  .sidebar-menu a:hover, 
  .sidebar-menu a.active {
    background-color: rgba(30, 144, 255, 0.2);
    color: var(--primary-blue);
  }
  
  .dashboard-content {
    background-color: rgba(30, 40, 56, 0.85);
    border-radius: 12px;
    padding: 2rem;
  }
  
  .dashboard-content h2 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(108, 117, 125, 0.2);
  }
  
  .dashboard-card {
    background-color: rgba(30, 40, 56, 0.5);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  /* Responsiv layout för dashboard */
  @media (max-width: 992px) {
    .dashboard-container {
      grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
      margin-bottom: 1.5rem;
    }
  }
  
  @media (max-width: 576px) {
    .dashboard-header .container {
      flex-direction: column;
      gap: 1rem;
      text-align: center;
    }
    
    .dashboard-controls {
      justify-content: center;
    }
  }

  /* =======================
   DASHBOARD BOOKINGS
======================= */
.bookings-container {
    margin-bottom: 2rem;
  }
  
  .bookings-table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(30, 40, 56, 0.5);
    border-radius: 8px;
    overflow: hidden;
  }
  
  .bookings-table th,
  .bookings-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(108, 117, 125, 0.2);
  }
  
  .bookings-table th {
    background-color: rgba(30, 40, 56, 0.8);
    color: var(--primary-blue);
    font-weight: 600;
  }
  
  .bookings-table tr:last-child td {
    border-bottom: none;
  }
  
  .bookings-table tr:hover {
    background-color: rgba(30, 144, 255, 0.05);
  }
  
  /* Status badges */
  .status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
  }
  
  .status-ny {
    background-color: rgba(30, 144, 255, 0.2);
    color: var(--primary-blue);
  }
  
  .status-kontaktad {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
  }
  
  .status-bokad {
    background-color: rgba(0, 166, 81, 0.2);
    color: var(--primary-green);
  }
  
  .status-avslutad {
    background-color: rgba(108, 117, 125, 0.2);
    color: var(--neutral-gray);
  }
  
  .status-avbokad {
    background-color: rgba(194, 33, 38, 0.2);
    color: var(--primary-red);
  }
  
  /* Action buttons */
  .action-button {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: none;
    background-color: rgba(30, 144, 255, 0.2);
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 0.5rem;
    font-size: 0.85rem;
  }
  
  .action-button:hover {
    background-color: var(--primary-blue);
    color: white;
  }
  
  .view-button {
    background-color: rgba(30, 144, 255, 0.2);
    color: var(--primary-blue);
  }
  
  .update-status-button {
    background-color: rgba(0, 166, 81, 0.2);
    color: var(--primary-green);
  }
  
  .update-status-button:hover {
    background-color: var(--primary-green);
  }
  
  /* Modal styles */
  .booking-details-modal,
  .booking-status-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 25, 39, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .booking-details-modal.active,
  .booking-status-modal.active {
    opacity: 1;
    visibility: visible;
  }
  
  .modal-content {
    background-color: rgba(30, 40, 56, 0.95);
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.4s ease;
    border: 1px solid rgba(30, 144, 255, 0.2);
    position: relative;
  }
  
  .booking-details-modal.active .modal-content,
  .booking-status-modal.active .modal-content {
    transform: translateY(0);
  }
  
  .close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
  }
  
  .close-modal:hover {
    color: var(--primary-blue);
  }
  
  .modal-content h3 {
    color: var(--primary-blue);
    font-family: "Orbitron", sans-serif;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(108, 117, 125, 0.2);
  }
  
  /* Booking details styling */
  .booking-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .booking-id {
    font-size: 0.9rem;
  }
  
  .details-section {
    background-color: rgba(30, 40, 56, 0.5);
    padding: 1rem;
    border-radius: 8px;
  }
  
  .details-section h4 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
  }
  
  .details-section p {
    margin-bottom: 0.5rem;
  }
  
  .label {
    font-weight: 600;
    color: var(--neutral-gray);
  }
  
  .message-box {
    background-color: rgba(30, 40, 56, 0.7);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    white-space: pre-wrap;
    min-height: 80px;
  }
  
  /* Status update form */
  #status-update-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  #status-update-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  #status-update-form label {
    color: var(--light-text);
    font-weight: 500;
  }
  
  #status-update-form select,
  #status-update-form textarea {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(30, 144, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(30, 40, 56, 0.7);
    color: var(--light-text);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  
  #status-update-form select:focus,
  #status-update-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(30, 144, 255, 0.4);
  }
  
  .submit-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-blue), #1564c0);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.4);
    margin-top: 1rem;
    align-self: center;
  }
  
  .submit-button:hover {
    background: linear-gradient(135deg, #1e90ff, #0e5cb2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.6);
  }
  
  /* Loading and error states */
  .loading-text,
  .error-message,
  .no-bookings {
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
  }
  
  .error-message {
    color: var(--primary-red);
  }
  
  .loading-text {
    color: var(--neutral-gray);
  }
  
  /* Responsive styles */
  @media (max-width: 992px) {
    .bookings-table {
      font-size: 0.9rem;
    }
    
    .action-button {
      padding: 0.3rem 0.6rem;
      font-size: 0.8rem;
    }
  }
  
  @media (max-width: 768px) {
    .bookings-table thead {
      display: none;
    }
    
    .bookings-table tbody, 
    .bookings-table tr, 
    .bookings-table td {
      display: block;
      width: 100%;
    }
    
    .bookings-table tr {
      margin-bottom: 1rem;
      border-radius: 8px;
      overflow: hidden;
      border: 1px solid rgba(108, 117, 125, 0.2);
    }
    
    .bookings-table td {
      text-align: right;
      padding: 0.75rem;
      position: relative;
      padding-left: 50%;
    }
    
    .bookings-table td:before {
      content: attr(data-label);
      position: absolute;
      left: 0.75rem;
      width: 45%;
      text-align: left;
      font-weight: 600;
      color: var(--primary-blue);
    }
    
    .modal-content {
      padding: 1.5rem;
    }
  }