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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6b 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    margin-bottom: 40px;
    color: white;
    position: relative;
}

.header-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.header-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6B35, #FF8C42, #FF6B35);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

.header-icon {
    font-size: 3.5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.header-text {
    flex: 1;
}

header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
}

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

/* Admin Toggle Button */
.admin-toggle-btn {
    padding: 10px;
    background: transparent;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

.admin-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.admin-toggle-btn.unlocked {
    background: rgba(76, 175, 80, 0.2);
}

.lock-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.lock-text {
    display: none;
}

.add-project-btn-header {
    padding: 14px 28px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.add-project-btn-header:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}

.add-project-btn-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.add-project-btn-header:hover::before {
    left: 100%;
}

.add-project-btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 100%);
}

.add-project-btn-header:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
}

.btn-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--stat-color);
}

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

.stat-card.stat-active::before {
    background: #4CAF50;
}

.stat-card.stat-published::before {
    background: #2196F3;
}

.stat-card.stat-ideas::before {
    background: #FF6B35;
}

.stat-card.stat-dead::before {
    background: #9E9E9E;
}

.stat-card.stat-total::before {
    background: #FF6B35;
}

.stat-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Filter Section */
.filter-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.section-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.filter-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #FF6B35;
    color: white;
    border-color: #FF6B35;
    font-weight: 600;
}


/* Projects Section */
.projects-section {
    margin-bottom: 30px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.project-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--status-color);
}

.project-card.active::before {
    background: #4CAF50;
}

.project-card.published::before {
    background: #2196F3;
}

.project-card.ideas::before {
    background: #FF6B35;
}

.project-card.dead::before {
    background: #9E9E9E;
}

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

.project-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.project-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-status.active {
    background: #E8F5E9;
    color: #4CAF50;
}

.project-status.published {
    background: #E3F2FD;
    color: #2196F3;
}

.project-status.ideas {
    background: #FFF3E0;
    color: #FF6B35;
}

.project-status.dead {
    background: #F5F5F5;
    color: #9E9E9E;
}

.project-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Status-specific details */
.project-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Progress bar for Active projects */
.progress-container {
    margin-bottom: 10px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Tech tags for Published projects */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tech-tag {
    background: #E3F2FD;
    color: #1976D2;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Links container for Published projects */
.project-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.project-link:hover {
    transform: translateY(-2px);
}

.project-link .link-icon {
    font-size: 1rem;
}

/* Live site link */
.live-link {
    background: #E3F2FD;
    color: #1976D2;
}

.live-link:hover {
    background: #BBDEFB;
    box-shadow: 0 4px 8px rgba(25, 118, 210, 0.2);
}

/* GitHub link */
.github-link {
    background: #F5F5F5;
    color: #333;
}

.github-link:hover {
    background: #E0E0E0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Vision for Planned projects */
.project-vision {
    background: #FFF3E0;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #FF6B35;
}

.project-vision .vision-label {
    font-size: 0.75rem;
    color: #FF6B35;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.project-vision .vision-text {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    font-style: italic;
}

/* Reason for Dead projects */
.project-reason {
    background: #FAFAFA;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #9E9E9E;
}

.project-reason .reason-label {
    font-size: 0.75rem;
    color: #9E9E9E;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.project-reason .reason-text {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.project-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.btn-edit, .btn-delete {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-edit {
    background: #1e3a5f;
    color: white;
}

.btn-edit:hover {
    background: #2d4a6b;
}

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

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

/* Hide actions when locked */
.project-actions.hidden {
    display: none !important;
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
}

/* PIN Modal Styles */
.pin-modal-content {
    max-width: 380px;
    text-align: center;
    padding: 40px 30px;
}

.pin-header {
    margin-bottom: 30px;
}

.pin-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.pin-header h2 {
    color: #1e3a5f;
    margin-bottom: 8px;
}

.pin-header p {
    color: #666;
    font-size: 0.95rem;
}

.pin-input-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pin-digit {
    width: 55px;
    height: 65px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
    color: #1e3a5f;
}

.pin-digit:focus {
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.pin-digit.error {
    border-color: #f44336;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.pin-error {
    color: #f44336;
    font-size: 0.9rem;
    min-height: 20px;
    margin-bottom: 15px;
}

.pin-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6b 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pin-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4);
}

.pin-hint {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #999;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

.close:hover {
    color: #000;
}

#projectForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Status-specific form fields */
.status-fields {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #ddd;
}

.status-fields.visible {
    display: flex;
}

.status-fields label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
}

.active-fields {
    border-left-color: #4CAF50;
}

.published-fields {
    border-left-color: #2196F3;
}

.ideas-fields {
    border-left-color: #FF6B35;
}

.dead-fields {
    border-left-color: #9E9E9E;
}

/* Progress slider */
.active-fields input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #ddd;
    border-radius: 4px;
    outline: none;
}

.active-fields input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.progress-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4CAF50;
    text-align: center;
}

#projectForm input,
#projectForm textarea,
#projectForm select {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

#projectForm input:focus,
#projectForm textarea:focus,
#projectForm select:focus {
    outline: none;
    border-color: #FF6B35;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.form-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
    background: #1e3a5f;
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: #2d4a6b;
}

.cancel-btn {
    background: #e0e0e0;
    color: #333;
}

.cancel-btn:hover {
    background: #d0d0d0;
}

.hidden {
    display: none !important;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 40px;
}

.footer-tagline {
    font-size: 1rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-weight: 500;
}

.footer-link {
    color: #FF6B35;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FF8C42;
}

/* Hamburger Menu */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    background: rgba(255, 107, 53, 0.9);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    padding: 12px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: auto;
    right: 20px;
    background: rgba(26, 42, 70, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 180px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: slideDown 0.3s ease;
}

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

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-item:hover:not(:disabled) {
    background: rgba(255, 107, 53, 0.3);
}

.mobile-menu-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mobile-menu-item.unlocked {
    background: rgba(76, 175, 80, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        padding: 20px;
    }

    .header-left {
        flex: 1;
        flex-direction: row;
        gap: 12px;
        overflow: hidden;
    }
    
    .header-icon {
        font-size: 2rem;
    }

    header h1 {
        font-size: 1.4rem;
    }

    .header-subtitle {
        font-size: 0.75rem;
    }

    .header-right {
        flex-shrink: 0;
        position: static;
    }

    .admin-toggle-btn,
    .add-project-btn-header {
        display: none !important;
    }

    .hamburger-btn {
        display: flex !important;
    }

    .mobile-menu {
        right: 20px;
        top: calc(100% + 10px);
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-value {
        font-size: 1.8rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .filter-section {
        padding: 20px;
    }
}

