    body {
      /* background: linear-gradient(135deg, #dbeafe, #61baf5); */
      background-color: white;
      font-family: 'Segoe UI', sans-serif;
    }
    .login-card {
      background: #fff;
      border-radius: 1rem;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
      padding: 2rem;
    }
    .login-logo {
      max-width: 120px;
      margin-bottom: 1rem;
    }
    .system-title {
      font-weight: 700;
      font-size: 1.2rem;
    }
    .system-subtitle {
      font-size: 0.9rem;
      color: #6c757d;
      margin-bottom: 1.5rem;
    }
    .btn-primary {
      font-weight: 600;
    }
    .footer-note {
      text-align: center;
      margin-top: 1rem;
      font-size: 0.85rem;
      color: #6c757d;
    }

    #login-card{
      max-width: 350px; width: 100%;
    }

    #login-container{
      min-height: 100vh;
    }
    .cursor-pointer {
  cursor: pointer;
}
.full-height {
  min-height: 100vh;
}

.changepass-card {
  max-width: 350px;
  width: 100%;
}


/* Upload Form Styles */
.form-container {
    max-width: 650px;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.form-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    margin-bottom: 18px;
    gap: 20px;
}

.form-row label {
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
}

.form-row input[type="text"],
.form-row input[type="date"],
.form-row select {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    width: 100%;
    background: #f9fafb;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-row input[type="text"]:focus,
.form-row input[type="date"]:focus,
.form-row select:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row input[type="file"] {
    border: none;
    padding: 10px 0;
}

.file-note {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
    font-style: italic;
}

.button-row {
    text-align: center;
    margin-top: 30px;
}

button {
    background: linear-gradient(135deg,  #0221a9 0%, #667eea 100%);
    color: #fff;
    border: none;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px #0221a9;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}


/* ===== RESET ===== */
* {
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* ===== PAGE CONTAINER ===== */
.page-container {
    max-width: 1300px;
    margin: auto;
    background: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* ===== SEARCH BAR ===== */
.search-container {
    margin-bottom: 20px;
}

.search-container form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-input-wrapper input {
    width: 100%;
    padding: 10px 35px 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
    color: #888;
    display: yes;
}

.category-dropdown {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 200px;
}

.search-container button[type="submit"] {
    background: #4a90e2;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
}

.search-container button[type="submit"]:hover {
    background: #357abd;
}

/* ===== TABLE ===== */
.table-wrapper {
    overflow-x: auto;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.result-table thead {
    background: #f1f3f6;
}

.result-table th,
.result-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
    text-align: left;
}

.result-table th {
    font-weight: 600;
    white-space: nowrap;
}

.result-table tbody tr:hover {
    background: #fafafa;
}

/* ===== COVER IMAGE ===== */
.result-table img {
    width: 80px;
    height: 110px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* ===== ACTION BUTTONS ===== */
.actions-cell {
    display: flex;
    gap: 6px;
}

.action-btn {
    text-decoration: none;
    font-size: 16px;
    padding: 5px 7px;
    border-radius: 4px;
    transition: background 0.2s;
}

.action-btn:hover {
    background: #e9edf3;
}

.action-btn.preview { color: #007bff; }
.action-btn.download { color: #28a745; }
.action-btn.edit { color: #f39c12; }
.action-btn.archive { color: #8e44ad; }

/* ===== NO RESULT ===== */
.no-result {
    text-align: center;
    padding: 20px;
    color: #777;
    font-style: italic;
}

/* ===== PAGINATION ===== */
.pagination {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background: #fff;
}

.pagination-btn:hover {
    background: #f1f3f6;
}

.pagination-info {
    font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .actions-cell {
        flex-wrap: wrap;
    }

    .result-table img {
        width: 60px;
        height: 90px;
    }
}

#editModal > div {
    width: 90%;
    max-width: 900px;
    height: 90%;
}

#editFrame {
    width: 100%;
    height: 100%;
}

.cover-preview-container {
    width: 200px;
    height: 250px;
    position: relative;
    overflow: hidden;
}

.cover-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent !important;
}

.cover-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    border-radius: 4px;
}

.suggestion-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 240px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
}

.suggestion-box li {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
}

.suggestion-box li:hover {
    background: #f1f3f4;
}
