/* General */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background-color: #f4f6f8;
  color: #333;
  line-height: 1.5;
}
* { box-sizing: border-box; }
/* Container */
.container {
  max-width: 900px;
  margin: 30px auto;
  padding: 25px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding-bottom: 40px;
}

/* Form */
.form-group { margin: 15px 0; }
label { font-weight: 500; margin-bottom: 5px; display: block; }
input[type="text"], input[type="password"], input[type="url"],
select, input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, select:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 5px rgba(0,123,255,0.3);
}

/* Buttons */
.btn, button {
  display: inline-block;
  padding: 10px 18px;
  margin: 10px 5px 0 0;
  background-color: #007bff;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn:hover, button:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

/* Progress */
.progress-container {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.progress-wrapper {
  background: #f9fafc;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease;
}
.progress-wrapper:hover { transform: scale(1.02); }
.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
}
.progress-bar-track {
  width: 100%;
  height: 16px;
  background: #e6e9ef;
  border-radius: 8px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #007bff, #00b4d8);
  border-radius: 8px;
  transition: width 0.3s ease;
}
/* --- Index page minor spacing fixes --- */
.container h2 {
  margin-bottom: 25px;
  text-align: center;
  font-weight: 600;
  color: #007bff;
}

.form-group {
  margin-bottom: 18px;
}

#dropZone {
  margin-top: 15px;
  border-radius: 8px;
  background: #f9fafc;
}

.button-group {
  margin-top: 20px;
  text-align: center;
}
/* --- Admin page tweaks --- */
.admin-section {
  margin: 30px 0;
  padding: 20px 25px;
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  background: #fafbfc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.admin-section h2 {
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #007bff;
  text-align: center;
}

.container-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}
/* --- Modern Login Page Styling --- */
.container.login-box {
  max-width: 380px;
  margin: 80px auto;
  padding: 40px 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  text-align: center;
}

.container.login-box h2 {
  margin-bottom: 25px;
  font-size: 1.6rem;
  font-weight: 600;
  color: #007bff;
}

/* Form groups with floating labels */
.container.login-box .form-group {
  position: relative;
  margin-bottom: 25px;
}

.container.login-box .form-group input {
  width: 100%;
  padding: 14px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background: #f9fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.container.login-box .form-group input:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0,123,255,0.25);
  outline: none;
}

/* Floating label effect */
.container.login-box .form-group label {
  position: absolute;
  left: 12px;
  top: 14px;
  background: #fff;
  padding: 0;
  color: #777;
  font-size: 0.95rem;
  pointer-events: none;
  margin: 0;
  display: inline-block;
  transition: 0.2s ease all;
}

.container.login-box .form-group input:focus + label,
.container.login-box .form-group input:not(:placeholder-shown) + label {
  top: -8px;
  left: 10px;
  font-size: 0.8rem;
  color: #007bff;
}

/* Button */
.container.login-box .btn {
  width: 100%;
  padding: 12px;
  font-size: 1.05rem;
  border-radius: 8px;
  background: linear-gradient(90deg, #007bff, #00b4d8);
}
.container.login-box .btn:hover {
  background: linear-gradient(90deg, #0056b3, #0090b8);
}
/* --- Admin Create Container Form --- */
.create-container-box {
  margin: 25px 0;
  padding: 20px 25px;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.create-container-box h3 {
  margin-bottom: 18px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #007bff;
  text-align: center;
}

.create-container-box .form-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.create-container-box label {
  flex: 0 0 140px;
  font-weight: 500;
  text-align: right;
  color: #333;
}

.create-container-box input[type="text"] {
  flex: 1;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background: #f9fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.create-container-box input[type="text"]:focus {
  border-color: #007bff;
  box-shadow: 0 0 6px rgba(0,123,255,0.25);
  outline: none;
}

.create-container-box .btn {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  font-size: 1.05rem;
  border-radius: 8px;
  background: linear-gradient(90deg, #007bff, #00b4d8);
}

.create-container-box .btn:hover {
  background: linear-gradient(90deg, #0056b3, #0090b8);
}

/* Success/Error messages inside container creation */
.create-container-box .message {
  margin-top: 12px;
  font-size: 0.95rem;
  text-align: center;
}
.create-container-box .message.success { color: #28a745; }
.create-container-box .message.error { color: #d9534f; }
/* Progress bar styling */
.progress-bar-track {
  background-color: #e9ecef;
  border-radius: 20px;
  height: 20px;
  margin-top: 5px;
}
.progress-bar-fill {
  background: linear-gradient(90deg, #0d6efd, #6610f2);
  height: 100%;
  width: 0%;
  border-radius: 20px;
  transition: width 0.4s ease;
}


/* Custom Blue Navbar */

.custom-navbar {
  background-color: #007bff;
  padding: 12px 20px;
}

.custom-navbar .navbar-brand {
  color: #fff;
  font-weight: 600;
  font-size: 1.3rem;
}

.custom-navbar .navbar-nav .nav-link {
  color: #fff !important;
  margin-right: 15px;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border-radius: 6px;
  padding: 8px 14px;
}

.custom-navbar .navbar-nav .nav-link:hover {
  background-color: #0056b3;
  color: #fff !important;
}

.custom-navbar .navbar-toggler {
  border: none;
}

.custom-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.file-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* File card hover effect */
.file-card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.file-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Selected file card */
.file-card.selected {
    border: 2px solid #0d6efd;
    background-color: rgba(13,110,253,0.08);
    box-shadow: 0 0 12px rgba(13,110,253,0.2);
}

/* Sticky action bar */
.back-btn {
    position: sticky;
    top: 10px;
    z-index: 100;
    background: white;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
}
/* Admin dashboard layout */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Admin cards */
.admin-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.admin-card h2,
.admin-card h3 {
    margin-bottom: 18px;
    font-size: 1.3rem;
}

/* Overview stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.admin-stat-box {
    background: white;
    padding: 18px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.admin-stat-box h3 {
    margin: 0;
    font-size: 2rem;
}

.admin-stat-box p {
    margin: 6px 0 0;
    color: #666;
}

/* Better checkbox container spacing */
.container-checkboxes {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Better checkbox labels */
.checkbox-label {
    display: block;
    margin-bottom: 8px;
}

/* Section spacing */
.admin-card .form-group {
    margin-bottom: 16px;
}
/* User table */
.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th,
.user-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
}

.user-table tr:hover {
    background-color: rgba(0,0,0,0.03);
}

/* Role badges */
.role-badge {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.role-admin {
    background-color: #dc3545;
}

.role-uploader {
    background-color: #0d6efd;
}

.role-viewer {
    background-color: #6c757d;
}

/* Search box */
.admin-search {
    margin-bottom: 15px;
}

.admin-search input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
}
