/* ===== Base Styles ===== */
body {
    background: linear-gradient(135deg, #1f1f1f, #2c2c2c);

    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    color: #343a40;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Smooth animations */
* {
    transition: all 0.2s ease-in-out;
}

/* ===== Card ===== */
.card {
    border: none;
    border-radius: 12px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.text-muted {
    color: #6c757d !important;
}

/* ===== Form Elements ===== */
.form-label {
    font-weight: 500;
}

.form-control {
    border-radius: 8px;
    background-color: #f8f9fa;
}

.form-control:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

/* ===== Buttons ===== */
button, .btn {
    border-radius: 8px;
    font-weight: 500;
}

.btn-success {
    background-color: #198754;
    border: none;
}

.btn-success:hover {
    background-color: #157347;
}

.btn-outline-secondary {
    border: 1px solid #ced4da;
}

.btn-outline-secondary:hover {
    background-color: #dee2e6;
}

/* ===== Alert Boxes ===== */
.alert {
    border-radius: 8px;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

/* === Dashboard Cards Enhanced === */
.card.bg-secondary {
    background: rgba(30, 30, 30, 0.85) !important;
    backdrop-filter: blur(4px);
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .card.bg-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.4);
  }
  
  .card-title {
    font-size: 1.4rem;
    font-weight: 600;
  }
  
  .card p {
    font-size: 0.95rem;
    color: #cccccc;
  }
  
  /* === Open Button Styling === */
  .btn-outline-light {
    border: 1px solid #ffffff;
    border-radius: 2rem;
    font-weight: 500;
  }
  
  .btn-outline-light:hover {
    background-color: #ffffff;
    color: #000000;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  }

/* ===== File Cards ===== */
.file-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.file-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 15px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.file-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.file-actions .btn {
    margin: 5px;
}

/* ===== Forms (Password Reset / Forgot) ===== */
.password-form-container {
    max-width: 450px;
    margin: 40px auto;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
}

.container {
    background-color: #1c1c1c;
    padding: 1.5rem;
    border-radius: 0.5rem;
  }

  .select2-container--default .select2-selection--single {
    background-color: #1e1e1e !important;
    color: #f8f9fa !important;
    border: 1px solid #555 !important;
  }

  .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #f8f9fa !important;
  }

  .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    color: #f8f9fa !important;
  }

  .select2-dropdown {
    background-color: #1e1e1e !important;
    color: #f8f9fa !important;
    border: 1px solid #444 !important;
  }

  .select2-results__option--highlighted {
    background-color: #0d6efd !important;
    color: white !important;
  }

  .select2-results__option {
    background-color: #1e1e1e !important;
    color: #f8f9fa !important;
  }


/* ===== Responsive Tweaks ===== */
@media (max-width: 576px) {
    .dashboard-title {
        font-size: 1.5rem;
    }

    .dashboard-greeting {
        font-size: 1rem;
    }

    .file-card {
        width: 100%;
    }

    .btn {
        font-size: 1rem;
    }
}