/* 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;
}
/* --- Minor fixes for login page --- */

/* Center login container and adjust spacing */
.container.login-box {
  max-width: 400px;
  margin: 60px auto;
  text-align: center;
  padding: 30px 25px;
}

/* Heading styling */
.container.login-box h2 {
  margin-bottom: 20px;
  color: #007bff;
  font-weight: 600;
}

/* Error message */
#error-message {
  color: #d9534f; /* Bootstrap red */
  margin-top: 10px;
  font-size: 0.95rem;
}

/* Countdown text */
#countdown {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #555;
}

/* Inputs full width and aligned */
.container.login-box input[type="text"],
.container.login-box input[type="password"] {
  margin-bottom: 15px;
}

/* Login button full width */
.container.login-box .btn {
  width: 100%;
  margin-top: 10px;
}

/* Flash message container spacing */
.flash-messages {
  max-width: 500px;
  margin: 20px auto;
}
.error-block {
  margin-top: 10px;
  margin-bottom: 10px;
}
/* --- Login form fixes --- */
.container.login-box .form-group {
  text-align: left;
  margin-bottom: 18px;
}

.container.login-box label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
}

.container.login-box input {
  width: 100%;
}
/* --- 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;
}
/* --- Login page horizontal form layout --- */
.container.login-box .form-group {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px; /* breathing space between label & input */
}

.container.login-box .form-group label {
  flex: 0 0 100px;   /* fixed width for labels */
  text-align: right; /* aligns neatly to the right */
  margin: 0;
  font-weight: 500;
  color: #333;
}

.container.login-box .form-group input {
  flex: 1; /* input stretches to fill remaining space */
  margin: 0;
}
/* --- View Files grid layout --- */
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.file-card {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}
.file-card:hover {
  transform: translateY(-4px);
}

.file-icon, .file-preview {
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
}

.filename {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  word-break: break-word;
}

.download-icon {
  width: 22px;
  height: 22px;
  cursor: pointer;
}
/* --- 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: 50%;
  transform: translateY(-50%);
  background: #fff;
  padding: 0 6px;
  color: #777;
  font-size: 0.95rem;
  pointer-events: none;
  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");
}

