/* Admin Login Page Styles */
.admin-login-page {
    background: linear-gradient(135deg, #000000 0%, #1A1A1A 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-box {
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.login-header h1 span {
    color: #DC2626;
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 10px;
}

.login-header p {
    color: #4A4A4A;
    font-size: 0.95rem;
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #FAFAFA 0%, #FFFFFF 100%);
    border-radius: 12px;
    border: 2px solid #E0E0E0;
}

.login-logo-icon {
    width: 60px;
    height: 60px;
    background-color: #DC2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-logo-icon svg {
    width: 35px;
    height: 35px;
    color: #FFFFFF;
}

.login-logo-text {
    display: flex;
    flex-direction: column;
}

.login-logo-text h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #000000;
    margin: 0;
    line-height: 1;
    letter-spacing: -1px;
}

.login-logo-text span {
    color: #DC2626;
}

.login-logo-text p {
    font-size: 0.8rem;
    color: #4A4A4A;
    margin: 0;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-form label {
    font-weight: 500;
    color: #000000;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-form label svg {
    width: 18px;
    height: 18px;
    color: #DC2626;
}

.login-form input {
    padding: 12px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password svg {
    width: 20px;
    height: 20px;
    color: #4A4A4A;
    transition: color 0.3s ease;
}

.toggle-password:hover svg {
    color: #DC2626;
}

.toggle-password .eye-closed {
    display: none;
}

.toggle-password.show-password .eye-open {
    display: none;
}

.toggle-password.show-password .eye-closed {
    display: block;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -10px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4A4A4A;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #DC2626;
    display: none;
}

.remember-me .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #E0E0E0;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

.remember-me input:checked + .checkmark {
    background-color: #DC2626;
    border-color: #DC2626;
}

.remember-me input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 10px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    color: #DC2626;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #B91C1C;
    text-decoration: underline;
}

.login-button {
    background-color: #DC2626;
    color: #FFFFFF;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.login-button:hover::before {
    width: 300px;
    height: 300px;
}

.login-button:hover {
    background-color: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 30px;
    text-align: center;
}

.back-to-site {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4A4A4A;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-to-site:hover {
    color: #DC2626;
}

.back-to-site svg {
    width: 20px;
    height: 20px;
}

/* Error states */
.login-form input.error {
    border-color: #DC2626;
}

.error-message {
    color: #DC2626;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Loading state */
.login-button.loading {
    color: transparent;
}

.login-button.loading .button-text {
    display: none;
}

.login-button.loading .button-loader {
    display: block;
}

.button-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 20px;
    }

    .login-box {
        padding: 35px 25px;
    }

    .login-logo {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .login-logo-icon {
        width: 55px;
        height: 55px;
    }

    .login-logo-icon svg {
        width: 32px;
        height: 32px;
    }

    .login-logo-text h1 {
        font-size: 2rem;
    }

    .login-logo-text p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }

    .login-box {
        padding: 30px 20px;
    }

    .login-logo {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .login-logo-icon {
        width: 50px;
        height: 50px;
    }

    .login-logo-icon svg {
        width: 28px;
        height: 28px;
    }

    .login-logo-text h1 {
        font-size: 1.8rem;
    }

    .login-logo-text p {
        font-size: 0.7rem;
    }

    .login-header h1 {
        font-size: 1.8rem;
    }

    .login-header h2 {
        font-size: 1.3rem;
    }

    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .login-button {
        padding: 12px;
    }
}

/* ==================== ADMIN DASHBOARD STYLES ==================== */

.admin-dashboard {
    background-color: #FAFAFA;
    font-family: 'Poppins', sans-serif;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: #000000;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 30px 25px;
    border-bottom: 1px solid #1A1A1A;
}

.sidebar-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.sidebar-header h2 span {
    color: #DC2626;
}

.sidebar-header p {
    color: #E0E0E0;
    font-size: 0.9rem;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: #E0E0E0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    background-color: #1A1A1A;
    color: #FFFFFF;
}

.nav-link.active {
    background-color: #DC2626;
    color: #FFFFFF;
}

.nav-link svg {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    padding: 20px 25px;
    border-top: 1px solid #1A1A1A;
}

.logout-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background-color: transparent;
    border: 1px solid #E0E0E0;
    color: #FFFFFF;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.logout-button:hover {
    background-color: #DC2626;
    border-color: #DC2626;
}

.logout-button svg {
    width: 18px;
    height: 18px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
}

.admin-header {
    background-color: #FFFFFF;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info span {
    font-weight: 500;
    color: #000000;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background-color: #DC2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar svg {
    width: 20px;
    height: 20px;
    color: #FFFFFF;
}

.view-site-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #000000;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-site-button:hover {
    background-color: #DC2626;
}

.view-site-button svg {
    width: 18px;
    height: 18px;
}

/* Content Sections */
.content-sections {
    padding: 30px;
    flex: 1;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background-color: #DC2626;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 30px;
    height: 30px;
    color: #FFFFFF;
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 5px;
}

.stat-info p {
    color: #4A4A4A;
    font-size: 0.9rem;
}

/* Recent Activity */
.recent-activity {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.recent-activity h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    border-color: #DC2626;
    background-color: #FAFAFA;
}

.activity-icon {
    width: 45px;
    height: 45px;
    background-color: #000000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon svg {
    width: 22px;
    height: 22px;
    color: #FFFFFF;
}

.activity-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 5px;
}

.activity-content p {
    color: #4A4A4A;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.activity-time {
    color: #E0E0E0;
    font-size: 0.85rem;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000;
}

.add-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #DC2626;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.add-button:hover {
    background-color: #B91C1C;
}

.add-button svg {
    width: 18px;
    height: 18px;
}

/* Services Table */
.services-table {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.services-table table {
    width: 100%;
    border-collapse: collapse;
}

.services-table thead {
    background-color: #000000;
}

.services-table th {
    padding: 15px 20px;
    text-align: left;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.9rem;
}

.services-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #E0E0E0;
    color: #000000;
    max-width: 300px;
}

.services-table td:nth-child(2) {
    max-width: 400px;
}

.services-table tr:last-child td {
    border-bottom: none;
}

.services-table tr:hover {
    background-color: #FAFAFA;
}

.status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status.active {
    background-color: #DC2626;
    color: #FFFFFF;
}

.status.inactive {
    background-color: #E0E0E0;
    color: #4A4A4A;
}

.action-button {
    padding: 8px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-right: 5px;
}

.action-button svg {
    width: 18px;
    height: 18px;
}

.action-button.edit {
    color: #000000;
}

.action-button.edit:hover {
    background-color: #000000;
    color: #FFFFFF;
}

.action-button.delete {
    color: #DC2626;
}

.action-button.delete:hover {
    background-color: #DC2626;
    color: #FFFFFF;
}

/* Messages Section */
.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-button {
    padding: 8px 16px;
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-button:hover {
    border-color: #DC2626;
    color: #DC2626;
}

.filter-button.active {
    background-color: #DC2626;
    color: #FFFFFF;
    border-color: #DC2626;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-card {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.message-sender h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 5px;
}

.message-email {
    color: #4A4A4A;
    font-size: 0.9rem;
}

.message-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.message-date {
    color: #E0E0E0;
    font-size: 0.85rem;
}

.message-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.message-status.unread {
    background-color: #DC2626;
    color: #FFFFFF;
}

.message-status.read {
    background-color: #E0E0E0;
    color: #4A4A4A;
}

.message-content {
    background-color: #FAFAFA;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.message-content p {
    color: #000000;
    line-height: 1.6;
}

.message-actions {
    display: flex;
    gap: 10px;
}

.message-actions .action-button {
    padding: 8px 16px;
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    color: #000000;
    font-size: 0.85rem;
}

.message-actions .action-button:hover {
    border-color: #DC2626;
    color: #DC2626;
}

/* Settings Section */
.settings-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.setting-group {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.setting-group h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #DC2626;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.settings-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-form label {
    font-weight: 500;
    color: #000000;
    font-size: 0.9rem;
}

.settings-form input,
.settings-form textarea,
.settings-form select {
    padding: 12px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.settings-form input:focus,
.settings-form textarea:focus,
.settings-form select:focus {
    outline: none;
    border-color: #DC2626;
}

.settings-form textarea {
    resize: vertical;
    min-height: 100px;
}

.save-button {
    padding: 12px 20px;
    background-color: #DC2626;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.save-button:hover {
    background-color: #B91C1C;
}

.cancel-button {
    padding: 12px 20px;
    background-color: #FFFFFF;
    color: #000000;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cancel-button:hover {
    border-color: #DC2626;
    color: #DC2626;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #FFFFFF;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #E0E0E0;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #000000;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.modal-close svg {
    width: 24px;
    height: 24px;
    color: #4A4A4A;
}

.modal-close:hover svg {
    color: #DC2626;
}

.modal-form {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-form label {
    font-weight: 500;
    color: #000000;
    font-size: 0.9rem;
}

.modal-form input,
.modal-form textarea,
.modal-form select {
    padding: 12px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus {
    outline: none;
    border-color: #DC2626;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Responsive Admin Dashboard */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .main-content {
        margin-left: 240px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .admin-header {
        padding: 15px 20px;
    }
    
    .content-sections {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-content {
        grid-template-columns: 1fr;
    }
    
    .services-table {
        overflow-x: auto;
    }
    
    .message-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .message-meta {
        align-items: flex-start;
    }
    
    .message-actions {
        flex-wrap: wrap;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}