/* Admin Panel Styles */
:root {
    --primary: #00ff88;
    --secondary: #00ffee;
    --dark: #070715;
    --light: #e6fff2;
    --accent: #ff00ff;
    --danger: #ff4444;
    --neon-glow: 0 0 10px rgba(0, 255, 136, 0.5),
                 0 0 20px rgba(0, 255, 136, 0.3),
                 0 0 30px rgba(0, 255, 136, 0.1);
    --neon-text-glow: 0 0 7px rgba(0, 255, 136, 0.8),
                      0 0 10px rgba(0, 255, 136, 0.6),
                      0 0 21px rgba(0, 255, 136, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #070715 0%, #0a1528 100%);
    min-height: 100vh;
    color: var(--light);
    padding: 0;
    margin: 0;
}

/* Admin Header */
.admin-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(7, 7, 21, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    box-shadow: 0 2px 10px rgba(0, 255, 136, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    text-shadow: var(--neon-text-glow);
    z-index: 101;
}

.logo span {
    color: var(--accent);
    text-shadow: 0 0 7px rgba(255, 0, 255, 0.8),
                 0 0 10px rgba(255, 0, 255, 0.6),
                 0 0 21px rgba(255, 0, 255, 0.4);
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
    text-shadow: var(--neon-text-glow);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    box-shadow: var(--neon-glow);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(7, 7, 21, 0.98);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        border-bottom: 1px solid rgba(0, 255, 136, 0.2);
        z-index: 99;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .main-nav.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

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

    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid rgba(0, 255, 136, 0.1);
        text-align: center;
    }

    .nav-link::after {
        display: none;
    }

    .header-container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }
}

.admin-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 70px;
}

.dashboard {
    width: 100%;
    max-width: 100%;
    padding: 2rem;
    min-height: calc(100vh - 70px);
    box-sizing: border-box;
}

.dashboard .container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Auth Card Styles */
.auth-card {
    background: rgba(7, 7, 21, 0.8);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid rgba(0, 255, 136, 0.2);
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.1);
    backdrop-filter: blur(10px);
}

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

.card-header h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: var(--neon-text-glow);
}

.card-header p {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    background: rgba(7, 7, 21, 0.6);
    color: var(--light);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--neon-glow);
}

.btn-submit {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neon-glow);
    margin-top: 1rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6),
                0 0 30px rgba(0, 255, 136, 0.4);
}

.switch-text {
    text-align: center;
    color: var(--light);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.switch-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.switch-text a:hover {
    text-shadow: var(--neon-text-glow);
}

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header h1 {
    color: var(--primary);
    text-shadow: var(--neon-text-glow);
    font-size: 2rem;
}

.dashboard-content {
    width: 100%;
    max-width: 100%;
}

.btn-logout {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--danger);
    border-radius: 8px;
    background: transparent;
    color: var(--danger);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-logout:hover {
    background: var(--danger);
    color: white;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
}

.welcome-section {
    background: rgba(7, 7, 21, 0.6);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    margin-bottom: 2rem;
    width: 100%;
}

.welcome-section h2 {
    color: var(--light);
    margin-bottom: 0.5rem;
}

.welcome-section span {
    color: var(--primary);
    text-shadow: var(--neon-text-glow);
}

.welcome-section p {
    color: var(--secondary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.stat-card {
    background: rgba(7, 7, 21, 0.6);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--neon-glow);
}

.stat-card h3 {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
    text-shadow: var(--neon-text-glow);
}

/* Management Section */
.management-section {
    background: rgba(7, 7, 21, 0.6);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    margin-bottom: 2rem;
    width: 100%;
}

.management-section h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-btn {
    padding: 1rem;
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: var(--neon-glow);
}

/* Users Section */
.users-section {
    background: rgba(7, 7, 21, 0.6);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    width: 100%;
}

.users-section h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-item {
    background: rgba(0, 255, 136, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.user-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.user-info {
    flex: 1;
}

.user-info h4 {
    color: var(--light);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.user-info p {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

/* Notification */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    background: rgba(7, 7, 21, 0.95);
    border: 1px solid var(--primary);
    color: var(--light);
    box-shadow: var(--neon-glow);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.notification.error {
    border-color: var(--danger);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.notification.success {
    border-color: var(--primary);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-container {
        padding: 1rem;
    }

    .auth-card {
        padding: 2rem;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }
}

/* Project Upload Section */
.project-upload-section,
.projects-list-section,
.register-user-section,
.registered-users-section {
    background: rgba(7, 7, 21, 0.6);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

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

.section-header h3 {
    color: var(--primary);
    margin: 0;
}

.btn-close {
    background: transparent;
    border: 2px solid var(--danger);
    color: var(--danger);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-close:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    background: rgba(7, 7, 21, 0.6);
    color: var(--light);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--neon-glow);
}

.form-group textarea {
    resize: vertical;
}

.form-group input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    background: rgba(7, 7, 21, 0.4);
    color: var(--light);
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.image-preview {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.image-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

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

.btn-cancel {
    padding: 1rem;
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-cancel:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.project-card {
    background: rgba(7, 7, 21, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--neon-glow);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-info h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.project-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.project-info p {
    color: var(--light);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.project-tech {
    color: var(--secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.project-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view {
    background: var(--primary);
    color: var(--dark);
    flex: 1;
}

.btn-delete {
    background: var(--danger);
    color: white;
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

/* User Profile */
.user-profile {
    background: rgba(7, 7, 21, 0.4);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--dark);
    font-weight: 700;
}

.profile-details h3 {
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.profile-details p {
    color: var(--secondary);
    font-size: 0.9rem;
}

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

.info-item {
    padding: 1rem;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.info-item label {
    color: var(--secondary);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.3rem;
}

.info-item span {
    color: var(--light);
    font-weight: 500;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--light);
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Success Card */
.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--primary);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    box-shadow: var(--neon-glow);
}

.success-content {
    text-align: center;
    padding: 2rem 0;
}

.success-content p {
    color: var(--light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-outline {
    padding: 1rem;
    border: 2px solid var(--primary);
    border-radius: 8px;
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: block;
}

.btn-outline:hover {
    background: rgba(0, 255, 136, 0.1);
    box-shadow: var(--neon-glow);
}

/* Responsive Updates */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

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

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-info {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }
}

/* Image Management Section */
.image-management-section {
    background: rgba(7, 7, 21, 0.6);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    margin-bottom: 2rem;
}

.image-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.image-category {
    background: rgba(0, 255, 136, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.15);
}

.image-category h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.image-category h5 {
    color: var(--secondary);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.current-image-preview {
    width: 100%;
    max-width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    margin-bottom: 1rem;
    box-shadow: var(--neon-glow);
}

.current-image-preview.small {
    max-width: 200px;
    height: 200px;
    border-radius: 12px;
}

.current-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-upload-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.image-upload-form input[type="file"] {
    padding: 0.8rem;
    border: 2px dashed rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    background: rgba(7, 7, 21, 0.4);
    color: var(--light);
    cursor: pointer;
}

.btn-upload {
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neon-glow);
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

.btn-upload.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Journey Images Grid */
.journey-images,
.achievement-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.journey-images-container,
.achievement-images-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.journey-card,
.achievement-card {
    background: rgba(7, 7, 21, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.journey-card:hover,
.achievement-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.journey-card-header,
.achievement-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.journey-card-header h5,
.achievement-card-header h5 {
    color: var(--primary);
    font-size: 1rem;
    margin: 0;
}

.btn-delete-journey,
.btn-delete-achievement {
    background: var(--danger);
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-delete-journey:hover,
.btn-delete-achievement:hover {
    background: #ff6666;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.journey-card-image,
.achievement-card-image {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.journey-card-image img,
.achievement-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.journey-card-info,
.achievement-card-info {
    margin-bottom: 0.8rem;
}

.journey-card-info p,
.achievement-card-info p {
    color: var(--light);
    font-size: 0.85rem;
    margin: 0.3rem 0;
}

.journey-card-actions,
.achievement-card-actions {
    display: flex;
    gap: 0.5rem;
}

.journey-card-actions input[type="file"],
.achievement-card-actions input[type="file"] {
    flex: 1;
    padding: 0.4rem;
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 6px;
    background: rgba(7, 7, 21, 0.4);
    color: var(--light);
    font-size: 0.75rem;
    cursor: pointer;
}

.btn-update-journey,
.btn-update-achievement {
    background: var(--primary);
    color: var(--dark);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-update-journey:hover,
.btn-update-achievement:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Add Journey Section */
.add-journey-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.add-journey-section h5 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.add-journey-section input[type="text"],
.add-journey-section textarea {
    width: 100%;
    max-width: 500px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    background: rgba(7, 7, 21, 0.6);
    color: var(--light);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.add-journey-section textarea {
    resize: vertical;
}

.add-journey-section input:focus,
.add-journey-section textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--neon-glow);
}

.add-journey-section input[type="file"] {
    display: block;
    width: 100%;
    max-width: 500px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 2px dashed rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    background: rgba(7, 7, 21, 0.4);
    color: var(--light);
    cursor: pointer;
}

.image-preview-small {
    width: 100%;
    max-width: 300px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--primary);
    margin-bottom: 1rem;
}

.image-preview-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.journey-image-item,
.achievement-image-item {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.journey-image-item label,
.achievement-image-item label {
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.journey-image-item input[type="file"],
.achievement-image-item input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    background: rgba(7, 7, 21, 0.4);
    color: var(--light);
    cursor: pointer;
    font-size: 0.85rem;
}

/* Add Achievement Section */
.add-achievement {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
}

.add-achievement input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    background: rgba(7, 7, 21, 0.6);
    color: var(--light);
    font-family: 'Poppins', sans-serif;
}

.add-achievement input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--neon-glow);
}

.add-achievement input[type="file"] {
    display: block;
    width: 100%;
    max-width: 400px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 2px dashed rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    background: rgba(7, 7, 21, 0.4);
    color: var(--light);
    cursor: pointer;
}

/* Responsive for Image Management */
@media (max-width: 768px) {
    .image-management-section {
        padding: 1.5rem;
    }

    .image-category {
        padding: 1rem;
    }

    .image-category h4 {
        font-size: 1.1rem;
    }

    .current-image-preview {
        max-width: 300px;
        height: 300px;
    }

    .current-image-preview.small {
        max-width: 150px;
        height: 150px;
    }

    .journey-images,
    .achievement-images {
        grid-template-columns: 1fr;
    }

    .journey-images-container,
    .achievement-images-container {
        grid-template-columns: 1fr;
    }

    .journey-card,
    .achievement-card {
        padding: 0.8rem;
    }

    .journey-card-image,
    .achievement-card-image {
        height: 150px;
    }

    .add-journey-section,
    .add-achievement {
        padding: 1rem;
    }

    .add-journey-section input[type="text"],
    .add-journey-section textarea,
    .add-achievement input[type="text"],
    .add-achievement textarea {
        max-width: 100%;
    }

    .add-journey-section input[type="file"],
    .add-achievement input[type="file"] {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .admin-container {
        padding: 1rem;
    }

    .image-management-section {
        padding: 1rem;
    }

    .image-category {
        padding: 0.8rem;
    }

    .image-category h4 {
        font-size: 1rem;
    }

    .current-image-preview {
        max-width: 250px;
        height: 250px;
    }

    .current-image-preview.small {
        max-width: 120px;
        height: 120px;
    }

    .journey-card-header h5,
    .achievement-card-header h5 {
        font-size: 0.9rem;
    }

    .btn-delete-journey,
    .btn-delete-achievement {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .journey-card-image,
    .achievement-card-image {
        height: 120px;
    }

    .journey-card-info p,
    .achievement-card-info p {
        font-size: 0.8rem;
    }

    .journey-card-actions input[type="file"],
    .achievement-card-actions input[type="file"] {
        font-size: 0.7rem;
        padding: 0.3rem;
    }

    .btn-update-journey,
    .btn-update-achievement {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }

    .add-journey-section h5,
    .add-achievement h5 {
        font-size: 1rem;
    }

    .add-journey-section input[type="text"],
    .add-journey-section textarea,
    .add-achievement input[type="text"],
    .add-achievement textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .image-preview-small {
        max-width: 200px;
        height: 150px;
    }

    .btn-upload {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .section-header h3 {
        font-size: 1.1rem;
    }

    .btn-close {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .journey-images-container,
    .achievement-images-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-category {
        padding: 1.2rem;
    }

    .current-image-preview {
        max-width: 350px;
        height: 350px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .journey-images-container,
    .achievement-images-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Comprehensive Mobile Responsive Styles */

/* Mobile - Auth Cards */
@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .card-header h2 {
        font-size: 1.5rem;
    }

    .card-header p {
        font-size: 0.85rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .btn-submit {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .switch-text {
        font-size: 0.85rem;
    }
}

/* Mobile - Dashboard */
@media (max-width: 768px) {
    .dashboard {
        padding: 1rem;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding-bottom: 1rem;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    .btn-logout {
        width: 100%;
        padding: 0.7rem;
    }

    .welcome-section {
        padding: 1.5rem;
    }

    .welcome-section h2 {
        font-size: 1.3rem;
    }

    .welcome-section p {
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card h3 {
        font-size: 0.8rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .management-section {
        padding: 1.5rem;
    }

    .management-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .action-buttons {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .action-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .users-section {
        padding: 1.5rem;
    }

    .users-section h3 {
        font-size: 1.2rem;
    }

    .user-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.8rem;
    }

    .user-info h4 {
        font-size: 0.95rem;
    }

    .user-info p {
        font-size: 0.8rem;
    }
}

/* Mobile - Project Upload */
@media (max-width: 768px) {
    .project-upload-section,
    .projects-list-section {
        padding: 1.5rem;
    }

    .section-header {
        flex-direction: row;
        align-items: center;
    }

    .section-header h3 {
        font-size: 1.2rem;
    }

    .upload-form {
        gap: 1rem;
    }

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

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-submit,
    .btn-cancel {
        width: 100%;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card {
        max-width: 100%;
    }

    .project-info {
        padding: 1rem;
    }

    .project-info h4 {
        font-size: 1rem;
    }

    .project-category {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .project-info p {
        font-size: 0.85rem;
    }

    .project-tech {
        font-size: 0.8rem;
    }

    .project-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-small {
        width: 100%;
        padding: 0.6rem;
    }
}

/* Small Mobile - Extra Compact */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
    }

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

    .dashboard-header h1 {
        font-size: 1.3rem;
    }

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

    .stat-card {
        padding: 0.8rem;
    }

    .management-section,
    .users-section,
    .project-upload-section,
    .projects-list-section {
        padding: 1rem;
    }

    .section-header h3 {
        font-size: 1rem;
    }

    .upload-info p {
        font-size: 0.8rem;
        padding: 0.8rem;
    }

    .project-card img {
        height: 150px;
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .admin-container {
        max-width: 700px;
    }

    .dashboard {
        max-width: 900px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop - Optimize Layout */
@media (min-width: 1025px) {
    body {
        padding: 2rem;
    }

    .admin-container {
        max-width: 600px;
    }

    .dashboard {
        max-width: 1400px;
        padding: 2rem;
    }

    .dashboard-content {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .journey-images-container,
    .achievement-images-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .image-management-section,
    .project-upload-section,
    .projects-list-section {
        max-width: 100%;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .dashboard {
        max-width: 1600px;
    }

    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .journey-images-container,
    .achievement-images-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Notification Responsive */
@media (max-width: 768px) {
    .notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* User Profile Responsive */
@media (max-width: 768px) {
    .user-profile {
        padding: 1.5rem;
    }

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

    .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .profile-details h3 {
        font-size: 1.1rem;
    }

    .profile-details p {
        font-size: 0.85rem;
    }

    .profile-info {
        grid-template-columns: 1fr;
    }

    .info-item {
        padding: 0.8rem;
    }

    .info-item label {
        font-size: 0.8rem;
    }

    .info-item span {
        font-size: 0.9rem;
    }
}

/* Success Card Responsive */
@media (max-width: 768px) {
    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .success-content p {
        font-size: 1rem;
    }

    .success-actions {
        gap: 0.8rem;
    }
}

/* Checkbox Responsive */
@media (max-width: 480px) {
    .checkbox-label {
        font-size: 0.85rem;
    }

    .checkbox-label input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
}

/* Ensure touch-friendly targets on mobile */
@media (max-width: 768px) {
    button,
    .btn,
    .action-btn,
    .btn-submit,
    .btn-cancel,
    .btn-logout,
    .btn-upload,
    .btn-close,
    .nav-link,
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    input[type="file"] {
        min-height: 44px;
    }
}

/* Landscape Mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .auth-card {
        max-height: 90vh;
        overflow-y: auto;
    }

    .dashboard-content {
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
}
