/* Admin Panel Styles */
.admin-body {
    background: #f5f7fa;
    min-height: 100vh;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 4rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.login-header h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #7f8c8d;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #3498db;
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1rem;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
}

.login-footer a {
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #2c3e50;
}

.login-info {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #ecf0f1;
}

.login-info p {
    color: #95a5a6;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error {
    background: #fee;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Admin Dashboard Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: #2c3e50;
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.sidebar-header span {
    color: #e74c3c;
}

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

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #e74c3c;
}

.sidebar-nav i {
    width: 20px;
}

.admin-main {
    margin-left: 260px;
    flex: 1;
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-header h1 {
    color: #2c3e50;
    font-size: 2rem;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #7f8c8d;
}

.admin-user i {
    font-size: 1.5rem;
}

.admin-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.stat-details h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.stat-details p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Admin Sections */
.admin-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-section .section-header h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

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

.admin-table thead {
    background: #f8f9fa;
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #ecf0f1;
    color: #555;
}

.admin-table tbody tr:hover {
    background: #f8f9fa;
}

.table-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Icon Buttons */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 0.2rem;
    text-decoration: none;
}

.btn-edit {
    background: #3498db;
    color: white;
}

.btn-edit:hover {
    background: #2980b9;
}

.btn-delete {
    background: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background: #c0392b;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

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

.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-upload-wrapper input[type=file] {
    position: absolute;
    left: -9999px;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px dashed #ecf0f1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #7f8c8d;
}

.file-upload-label:hover {
    border-color: #3498db;
    color: #3498db;
}

.image-preview {
    margin-top: 1rem;
    max-width: 300px;
}

.image-preview img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Logo Management Styles */
.section-note {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

.current-logo-wrapper {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.current-logo-wrapper h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.current-logo-preview {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #ecf0f1;
}

.current-logo-preview img {
    max-width: 300px;
    max-height: 100px;
    object-fit: contain;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.logo-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.preview-box {
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #ecf0f1;
}

.preview-box h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1rem;
}

.preview-box.light-bg {
    background: white;
}

.preview-box.dark-bg {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.preview-box.dark-bg h4 {
    color: white;
}

.mock-navbar {
    background: transparent;
    padding: 1rem;
    border-radius: 5px;
}

.mock-navbar .logo h1 {
    font-size: 1.5rem;
    margin: 0;
}

.mock-navbar .logo img {
    max-height: 50px;
    object-fit: contain;
}

/* Gallery Grid Admin */
.gallery-grid-admin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.gallery-item-admin {
    position: relative;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.gallery-item-admin:hover {
    border-color: #3498db;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item-admin img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-item-info {
    padding: 1rem;
}

.gallery-item-info strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 0.3rem;
}

.gallery-item-info small {
    color: #7f8c8d;
    font-size: 0.85rem;
}

.gallery-item-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.project-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-info {
    background: #3498db;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-info:hover {
    background: #2980b9;
}

.filter-form {
    background: white;
    padding: 1rem;
    border-radius: 8px;
}

/* Contact Submissions Styles */
.submissions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.submission-card {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.submission-card.new {
    border-left: 4px solid #e74c3c;
    background: #fff5f5;
}

.submission-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.submission-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.submission-id {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1rem;
}

.submission-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-new {
    background: #fee;
    color: #e74c3c;
}

.status-read {
    background: #fff3cd;
    color: #856404;
}

.status-replied {
    background: #d4edda;
    color: #155724;
}

.status-archived {
    background: #e7e7e7;
    color: #6c757d;
}

.submission-date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.submission-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.submission-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.info-row strong {
    color: #2c3e50;
    font-size: 0.9rem;
}

.info-row span, .info-row a {
    color: #555;
}

.info-row a {
    text-decoration: none;
    color: #3498db;
}

.info-row a:hover {
    text-decoration: underline;
}

.submission-message {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    border-left: 3px solid #3498db;
}

.submission-message strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.submission-message p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    display: none;
    padding: 0.5rem 0;
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-menu a {
    display: block;
    padding: 0.7rem 1rem;
    color: #2c3e50;
    text-decoration: none;
    transition: background 0.2s ease;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
}

.dropdown-menu hr {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid #ecf0f1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notification Badge */
.badge-notification {
    background: #e74c3c;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* Info Box */
.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1.5rem;
    border-radius: 5px;
}

.info-box h4 {
    color: #1976d2;
    margin-bottom: 1rem;
}

.info-box ol {
    margin-left: 1.5rem;
    color: #555;
}

.info-box ol li {
    margin-bottom: 0.5rem;
}

.info-box code {
    background: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    color: #e74c3c;
    font-family: monospace;
}

/* Change Password Page Styles */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.account-info-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 10px;
    color: white;
}

.account-avatar {
    font-size: 5rem;
    opacity: 0.9;
}

.account-details {
    flex: 1;
}

.account-details .info-item {
    margin-bottom: 1rem;
}

.account-details .info-item:last-child {
    margin-bottom: 0;
}

.account-details label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0.3rem;
}

.account-details span {
    font-size: 1.1rem;
    font-weight: 500;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #2c3e50;
}

.password-strength {
    display: none;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.strength-bar {
    flex: 1;
    height: 5px;
    background: #ecf0f1;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    max-width: 200px;
}

.strength-text {
    font-size: 0.85rem;
    font-weight: 600;
}

.password-match {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.security-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2ecc71;
}

.tip-card i {
    font-size: 1.5rem;
    color: #2ecc71;
    margin-top: 0.2rem;
}

.tip-card strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.tip-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 200px;
    }

    .admin-main {
        margin-left: 200px;
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .admin-section .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .account-info-card {
        flex-direction: column;
        text-align: center;
    }

    .security-tips {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .admin-wrapper {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }

    .admin-main {
        margin-left: 0;
    }
}

