/* ============================================
   SECRET ADMIN PANEL STYLES
   ============================================ */

/* Secret Trigger — looks like normal text */
#secret-trigger {
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

/* ============================================
   PASSWORD MODAL
   ============================================ */
.admin-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: adminFadeIn 0.3s ease;
}
.admin-modal-overlay.active {
    display: flex;
}

.password-modal {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    animation: adminSlideUp 0.4s ease;
}
.password-modal h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}
.password-modal .modal-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 1.5rem;
}
.password-modal input[type="password"] {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}
.password-modal input[type="password"]:focus {
    border-color: #E63946;
}
.password-modal .modal-error {
    color: #E63946;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    text-align: center;
    min-height: 1.2em;
}
.password-modal .modal-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}
.password-modal .modal-actions button {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}
.btn-modal-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}
.btn-modal-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}
.btn-modal-submit {
    background: #E63946;
    color: #fff;
}
.btn-modal-submit:hover {
    background: #c62d39;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-panel-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #0f0f1a;
    z-index: 10001;
    display: none;
    overflow-y: auto;
    animation: adminFadeIn 0.3s ease;
}
.admin-panel-overlay.active {
    display: block;
}

.admin-header {
    position: sticky;
    top: 0;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}
.admin-header h1 {
    color: #fff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.admin-header h1::before {
    content: '⚙️';
}
.admin-header-actions {
    display: flex;
    gap: 0.8rem;
}
.btn-admin {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}
.btn-admin-save {
    background: #4CAF50;
    color: #fff;
}
.btn-admin-save:hover {
    background: #43a047;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}
.btn-admin-close {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}
.btn-admin-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.admin-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0;
    overflow-x: auto;
}
.admin-tab {
    padding: 0.8rem 1.5rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}
.admin-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}
.admin-tab.active {
    color: #E63946;
    border-bottom-color: #E63946;
}

/* Tab Content */
.admin-tab-content {
    display: none;
}
.admin-tab-content.active {
    display: block;
    animation: adminFadeIn 0.3s ease;
}

/* Section Cards */
.admin-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.admin-section h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Form Elements */
.admin-field {
    margin-bottom: 1.2rem;
}
.admin-field label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}
.admin-field input[type="text"],
.admin-field input[type="number"],
.admin-field input[type="tel"],
.admin-field input[type="email"],
.admin-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s;
    resize: vertical;
}
.admin-field input:focus,
.admin-field textarea:focus {
    border-color: #E63946;
}

/* ============================================
   PROJECT MANAGEMENT
   ============================================ */
.admin-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.admin-project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s;
}
.admin-project-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}
.admin-project-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.admin-project-card .card-info {
    padding: 0.8rem;
}
.admin-project-card .card-info h4 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}
.admin-project-card .card-info p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}
.admin-project-card .delete-btn,
.admin-project-card .edit-btn {
    position: absolute;
    top: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.admin-project-card .delete-btn {
    right: 8px;
    background: rgba(230, 57, 70, 0.9);
}
.admin-project-card .edit-btn {
    right: 42px;
    background: rgba(76, 175, 80, 0.9);
}
.admin-project-card:hover .delete-btn,
.admin-project-card:hover .edit-btn {
    opacity: 1;
}
.delete-btn:hover {
    background: #c62d39;
    transform: scale(1.1);
}
.edit-btn:hover {
    background: #43a047;
    transform: scale(1.1);
}

/* Add Project Form */
.add-project-form {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.add-project-form h3 {
    color: #fff;
    margin-bottom: 1rem;
}
.file-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1rem;
}
.file-upload-area:hover {
    border-color: #E63946;
    background: rgba(230, 57, 70, 0.05);
}
.file-upload-area p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}
.file-upload-area .upload-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.file-upload-area img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    margin-top: 0.5rem;
}
.btn-add-project {
    background: #E63946;
    color: #fff;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    margin-top: 0.5rem;
}
.btn-add-project:hover {
    background: #c62d39;
    transform: translateY(-1px);
}

/* ============================================
   PASSWORD CHANGE SECTION
   ============================================ */
.password-change-section {
    margin-top: 1rem;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.admin-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #4CAF50;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 99999;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
}
.admin-toast.show {
    transform: translateY(0);
    opacity: 1;
}
.admin-toast.error {
    background: #E63946;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes adminFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes adminSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .admin-header {
        padding: 0.8rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .admin-header h1 {
        font-size: 1.1rem;
    }
    .admin-body {
        padding: 1rem;
    }
    .admin-tabs {
        gap: 0;
    }
    .admin-tab {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    .admin-projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .password-modal {
        padding: 1.5rem;
        margin: 1rem;
    }
}
