/* ===== RESET PASSWORD STYLES ===== */

/* Reset Password Page Layout */
.reset-password-page {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: url('../images/splash.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reset-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.reset-container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    margin: 20px;
}

/* Reset Password Header */
.reset-header {
    text-align: center;
    margin-bottom: 30px;
}

.reset-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.reset-header h1 {
    color: #333;
    font-size: 28px;
    font-weight: 300;
    margin: 0;
}

/* Reset Password Form */
.reset-form .form-group {
    margin-bottom: 20px;
}

.reset-form label {
    display: block;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.reset-form input[type="email"],
.reset-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.reset-form input[type="email"]:focus,
.reset-form input[type="password"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Reset Password Buttons */
.reset-btn {
    width: 100%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 20px;
}

.reset-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.reset-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Links */
.back-link {
    display: block;
    text-align: center;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

/* Messages */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

/* Responsive Design */
@media (max-width: 480px) {
    .reset-container {
        padding: 30px 20px;
        margin: 10px;
    }

    .reset-logo {
        max-width: 150px;
    }

    .reset-header h1 {
        font-size: 24px;
    }
}

/* ===== LOGIN PAGE STYLES ===== */

/* Login Page Layout */
.login-page {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: url('../images/splash.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.login-container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    margin: 20px;
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.login-header h1 {
    color: #333;
    font-size: 28px;
    font-weight: 300;
    margin: 0;
}

/* Login Form */
.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Login Options */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
}

.remember-me label {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.forgot-password {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

/* Login Footer */
.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.login-footer p {
    color: #666;
    font-size: 12px;
    margin: 0;
}

.login-footer a {
    color: #666;
    text-decoration: none;
}

.login-footer a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Messages */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

/* Login Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
        margin: 10px;
    }

    .login-logo {
        max-width: 150px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* ===== DASHBOARD LAYOUT STYLES ===== */

:root {
    --background-primary: rgb(255, 255, 255);
    --background-primary-text: rgb(170, 12, 12);
    --background-secondary: rgb(255, 100, 100);
    --background-secondary-text: rgb(255,255,255);
    --accent: rgb(224, 49, 49);
    --font: Roboto;
    --sidebar-color: rgba(31, 41, 55, 1);
    --sidebar-highlight: rgba(55, 65, 81, 1);
    --sidebar-text: rgb(255,255,255);
    --frame-color: rgb(255,255,255);
    --frame-text: rgb(34, 34, 34);
    --switch-color: rgb(112, 14, 14);
    --background-hover-color: rgb(170, 12, 12);
    --hover-color: rgb(255,255,255);
    --bottom-bar-color: rgb(170, 12, 12);
    --bottom-bar-text: white;
    --background-highlight: #f8f9fa;
    --text-highlight: rgb(170, 12, 12);
    --border-color: #e9ecef;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* General Layout */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font), sans-serif;
    font-size: 13px;
    background-color: var(--background-highlight);
    overflow-x: hidden;
}

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Header Styles */
.main-header {
    background: var(--background-primary);
    color: var(--background-primary-text);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 100%;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
}

.logout-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

.logout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.logout-btn i {
    font-size: 16px;
}

.header-logo {
    height: 40px;
    width: auto;
}

.mobile-menu-toggle {
    display: none;
}

/* Sidebar Styles */
.main-sidebar {
    width: 280px;
    background: var(--sidebar-color);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    z-index: 900;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.sidebar-content {
    padding: 0px 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    margin-top:15px;
    padding: 0 25px 15px;
    border-bottom: 1px solid var(--sidebar-highlight);
    text-align: center;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.user-avatar {
    font-size: 42px;
    color: white;   
    border-radius: 50%;
    padding: 6px;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--sidebar-text);
    margin: 0;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 15px 0;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--sidebar-highlight);
    color: #007bff;
    border-left-color: #007bff;
}

.nav-link i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 5px 25px 15px;
    text-align: center;
}

.sidebar-footer p {
    color: #666;
    font-size: 11px;
    margin: 5px 0 0 0;
}

.sidebar-footer a {
    color: #666;
    text-decoration: none;
}

.sidebar-footer a:hover {
    color: var(--accent);
    text-decoration: underline;
}



/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    margin-top: 60px;
    padding: 30px;
    min-height: calc(100vh - 60px);
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 32px;
    font-weight: 300;
    color: var(--frame-text);
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--sidebar-color);
}

.dashboard-content {
    background: var(--frame-color);
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.dashboard-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.placeholder-content {
    text-align: center;
    color: var(--text-highlight);
}

.placeholder-content i {
    font-size: 64px;
    color: var(--background-primary);
    margin-bottom: 20px;
    opacity: 0.7;
}

.placeholder-content p {
    font-size: 18px;
    margin: 0;
}

/* Settings Styles */
.settings-container {
    max-width: 1200px;
    padding: 0;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.settings-section {
    background: var(--frame-color);
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #f0f0f0;
}

.settings-section h2 {
    color: var(--frame-text);
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-section h2 i {
    color: var(--accent);
    font-size: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 30px;
}

.form-group label {
    font-weight: 600;
    color: var(--frame-text);
    font-size: 15px;
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
}

.form-note {
    color: #666;
    font-size: 14px;
    margin: -5px 0 20px 0;
    font-style: italic;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item label {
    font-weight: 600;
    color: var(--frame-text);
    font-size: 15px;
}

.info-item span {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 16px 20px;
    border-radius: 12px;
    color: var(--frame-text);
    font-size: 16px;
    font-weight: 500;
    border: 1px solid #dee2e6;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 30px;
    margin-top: 20px;
    border-top: 2px solid #e9ecef;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .main-sidebar.sidebar-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-toggle {
        display: block;
        order: -1;
    }

    .header-left {
        display: none;
    }

    .sidebar-toggle {
        background: transparent;
        color: #333;
        border: 1px solid #ddd;
        padding: 10px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 18px;
        transition: all 0.3s ease;
    }

    .sidebar-toggle:hover {
        background: #f8f9fa;
        border-color: #bbb;
    }



    .dashboard-content {
        padding: 20px;
    }

    .dashboard-header h1 {
        font-size: 24px;
    }

    /* Settings Mobile Styles */
    .settings-container {
        padding: 10px;
    }

    .settings-form {
        gap: 25px;
    }

    .settings-section {
        padding: 20px;
    }

    .settings-section h2 {
        font-size: 18px;
        margin-bottom: 20px;
        padding-bottom: 10px;
        gap: 8px;
    }

    .settings-section h2 i {
        font-size: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group input,
    .form-group select {
        padding: 12px 16px;
        font-size: 16px;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-actions {
        padding-top: 20px;
        margin-top: 15px;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px;
    }

    .dashboard-content {
        padding: 15px;
    }

    .sidebar-content {
        padding: 20px 0;
    }

    .sidebar-header,
    .sidebar-nav,
    .sidebar-footer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ===== DOCUMENTS TABLE STYLES ===== */

/* Striped rows effect for documents table */
#documentsTable tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Hover effect for documents table rows */
#documentsTable tbody tr:hover {
    background-color: #e9ecef !important;
    cursor: pointer;
}

/* ===== DOCUMENTS VIEW MOBILE RESPONSIVE ===== */

/* Documents view mobile optimizations */
@media (max-width: 768px) {
    /* Documents page header */
    .dashboard-header h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    /* Documents filters form */
    .dashboard-content .settings-form {
        padding: 15px;
    }

    .dashboard-content .form-row {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .dashboard-content .form-group {
        margin-bottom: 15px;
    }

    .dashboard-content .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .dashboard-content .form-group input {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .dashboard-content .btn-primary {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        justify-content: center;
    }

    /* Documents table section */
    .settings-section {
        padding: 15px;
        margin-top: 20px;
    }

    .settings-section h2 {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 8px;
        gap: 8px;
    }

    .settings-section h2 i {
        font-size: 18px;
    }

    /* Documents table container */
    .table-responsive {
        border-radius: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -5px;
    }

    /* Documents table styling for mobile */
    #documentsTable {
        font-size: 13px;
    }

    #documentsTable th,
    #documentsTable td {
        padding: 6px 8px; /* Reduced padding */
        white-space: nowrap;
    }

    #documentsTable th {
        font-size: 12px;
        font-weight: 600;
    }

    /* Optimize column widths for mobile */
    #documentsTable th:nth-child(1),
    #documentsTable td:nth-child(1) {
        width: 25%; /* Date column */
        min-width: 80px;
    }

    #documentsTable th:nth-child(2),
    #documentsTable td:nth-child(2) {
        width: 55%; /* Name column - takes more space */
        min-width: 120px;
    }

    #documentsTable th:nth-child(5),
    #documentsTable td:nth-child(5) {
        width: 20%; /* Actions column */
        min-width: 60px;
        text-align: center;
    }

    /* DataTable responsive controls */
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        font-size: 14px;
        margin: 8px 0;
    }

    .dataTables_wrapper .dataTables_filter input {
        font-size: 14px;
        padding: 6px 8px;
        width: 150px;
    }

    .dataTables_wrapper .dataTables_length select {
        font-size: 14px;
        padding: 4px;
    }

    /* Documents action buttons for mobile */
    #documentsTable .btn-primary {
        padding: 6px 8px;
        font-size: 14px;
        min-width: 32px;
        height: 32px;
    }

    #documentsTable .btn-primary i {
        font-size: 14px;
    }

    /* Hide description and size columns on mobile */
    #documentsTable th:nth-child(3),
    #documentsTable td:nth-child(3),
    #documentsTable th:nth-child(4),
    #documentsTable td:nth-child(4) {
        display: none !important;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .dashboard-content {
        padding: 10px;
    }

    .dashboard-content .settings-form {
        padding: 12px;
    }

    .settings-section {
        padding: 12px;
    }

    #documentsTable {
        font-size: 13px;
    }

    #documentsTable th,
    #documentsTable td {
        padding: 6px 8px;
    }

    /* DataTable controls for very small screens */
    .dataTables_wrapper .dataTables_filter input {
        width: 120px;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        text-align: left;
        float: none !important;
        display: block;
        margin-bottom: 10px;
    }

    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: center;
        float: none !important;
        display: block;
        margin-top: 10px;
    }
}
