﻿
* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.login-wrapper {
    width: 100%;
    padding: 20px;
}

.login-container {
    max-width: 440px;
    margin: 0 auto;
    background: #ffffff;
    padding: 48px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.canon-logo {
    max-width: 160px;
    margin-bottom: 36px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.login-title {
    color: #d40000;
    font-weight: 700;
    font-size: 26px;
    margin-bottom: 32px;
    text-align: left;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.required {
    color: #d40000;
}

.input-wrapper {
    position: relative;
}

.form-control {
    height: 52px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
}

    .form-control:focus {
        border-color: #d40000;
        box-shadow: 0 0 0 3px rgba(212, 0, 0, 0.1);
        outline: none;
    }

    .form-control.error {
        border-color: #dc3545;
    }

        .form-control.error:focus {
            box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
        }

.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

    .error-message.show {
        display: block;
    }

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    transition: color 0.2s;
}

    .password-toggle:hover {
        color: #d40000;
    }

.btn-canon {
    background-color: #d40000;
    color: #fff;
    border-radius: 12px;
    padding: 14px 32px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .btn-canon:hover {
        background-color: #b00000;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(212, 0, 0, 0.3);
    }

    .btn-canon:active {
        transform: translateY(0);
    }

    .btn-canon:disabled {
        background-color: #ccc;
        cursor: not-allowed;
        transform: none;
    }

.forgot-password {
    color: #d40000;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

    .forgot-password:hover {
        color: #b00000;
        text-decoration: underline;
    }

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    border: 1px solid #c3e6cb;
}

    .success-message.show {
        display: block;
    }

@media (max-width: 576px) {
    .login-container {
        padding: 32px 24px;
    }

    .login-title {
        font-size: 22px;
    }
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Changed background from violet gradient to white */
    background: white;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    background: #d40000;
    padding: 30px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

    .header h1 {
        font-size: 28px;
        font-weight: 600;
    }

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: white;
    color: #d40000;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

.btn-action {
    padding: 6px 12px;
    font-size: 12px;
    background: #f3f4f6;
    color: #374151;
}

    .btn-action:hover {
        background: #e5e7eb;
    }

.btn-danger {
    background: #ef4444;
    color: white;
}

    .btn-danger:hover {
        background: #dc2626;
    }

.controls {
    padding: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.search-box {
    position: relative;
    max-width: 400px;
}

    .search-box input {
        width: 100%;
        padding: 12px 16px 12px 44px;
        border: 2px solid #e5e7eb;
        border-radius: 8px;
        font-size: 14px;
        transition: all 0.3s ease;
    }

        .search-box input:focus {
            outline: none;
            border-color: #d40000;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.table-container {
    overflow-x: auto;
    padding: 0 30px 30px 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f9fafb;
}

th {
    padding: 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
}

tbody tr {
    transition: background 0.2s ease;
}

    tbody tr:hover {
        background: #f9fafb;
    }

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.actions {
    display: flex;
    gap: 8px;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 16px;
}

.pagination-info {
    color: #6b7280;
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    gap: 8px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #374151;
}

    .page-btn:hover:not(:disabled) {
        background: #f3f4f6;
        border-color: #d40000;
    }

    .page-btn.active {
        background: #d40000;
        color: white;
        border-color: #d40000;
    }

    .page-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

    .no-results svg {
        width: 64px;
        height: 64px;
        margin: 0 auto 16px;
        opacity: 0.3;
    }

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-container {
        overflow-x: auto;
    }

    table {
        min-width: 800px;
    }

    .pagination {
        flex-direction: column;
    }
}