/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #334155;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.hidden {
    display: none !important;
}

.auth-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    z-index: 3000;
}

.auth-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.20), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.16), transparent 45%),
        rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 28px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.25),
        0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
}

.auth-brand i {
    font-size: 30px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-brand h1 {
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(90deg, #0f172a, #334155);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.auth-title {
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -0.6px;
}

.auth-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #334155;
    margin-bottom: 6px;
}

.auth-field input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.75) inset,
        0 6px 18px rgba(15, 23, 42, 0.06);
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    transition: all 0.25s ease;
}

.auth-field input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.7);
    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.14),
        0 10px 26px rgba(59, 130, 246, 0.16);
}

.auth-btn {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 0.3px;
    color: #fff;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    box-shadow:
        0 12px 30px rgba(37, 99, 235, 0.25),
        0 1px 0 rgba(255, 255, 255, 0.25) inset;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 36px rgba(37, 99, 235, 0.32),
        0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.auth-btn.secondary {
    background: linear-gradient(90deg, #f1f5f9, #e2e8f0);
    color: #0f172a;
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.10),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.auth-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.auth-link {
    border: none;
    background: transparent;
    padding: 8px 0;
    cursor: pointer;
    color: #2563eb;
    font-weight: 800;
    font-size: 13px;
}

.auth-error {
    min-height: 18px;
    font-size: 13px;
    font-weight: 800;
    color: #dc2626;
}

@media (max-width: 480px) {
    .auth-screen {
        padding: 18px;
    }

    .auth-card {
        padding: 22px;
        border-radius: 18px;
    }

    .auth-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #f1f5f9;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    box-shadow: 
        4px 0 20px rgba(0, 0, 0, 0.2),
        inset -1px 0 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
    border-radius: 3px;
}

.logo i {
    font-size: 32px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 4px rgba(96, 165, 250, 0.3));
}

.logo h1 {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(90deg, #f1f5f9, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-menu {
    list-style: none;
    flex-grow: 1;
    margin-top: 10px;
}

.nav-menu li {
    padding: 16px 20px;
    margin-bottom: 8px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-menu li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.nav-menu li:hover::before {
    left: 100%;
}

.nav-menu li:hover {
    background: linear-gradient(90deg, rgba(51, 65, 85, 0.8), rgba(30, 41, 59, 0.8));
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-menu li.active {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 
        0 4px 15px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-menu li i {
    width: 20px;
    text-align: center;
    font-size: 18px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.add-project {
    margin: 30px 0;
    position: relative;
}

#addProjectBtn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(90deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 16px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

#addProjectBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

#addProjectBtn:hover::before {
    left: 100%;
}

#addProjectBtn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(16, 185, 129, 0.4),
        0 4px 6px rgba(0, 0, 0, 0.1);
}

.logout-btn {
    width: 100%;
    padding: 18px;
    background: rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.logout-btn:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(255, 255, 255, 0.09);
}

.footer-info {
    font-size: 14px;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: auto;
}

.footer-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.footer-info p:hover {
    color: #f1f5f9;
    transform: translateX(5px);
}

#totalProjects {
    color: #60a5fa;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(96, 165, 250, 0.3);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
    max-width: calc(100% - 280px);
    position: relative;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 25px;
    position: relative;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(226, 232, 240, 0.5);
}

.header-left h2 {
    font-size: 32px;
    color: #0f172a;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #0f172a, #334155);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-left p {
    color: #64748b;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.header-right {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.header-logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #334155;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.header-logout-btn:hover {
    background: #f1f5f9;
    border-color: rgba(148, 163, 184, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.search-box {
    position: relative;
    width: 320px;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 2;
    font-size: 18px;
}

#searchInput {
    width: 100%;
    padding: 18px 25px 18px 55px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    color: #334155;
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#searchInput:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.1),
        0 4px 20px rgba(59, 130, 246, 0.15);
    background: white;
}

#searchInput::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.view-controls {
    display: flex;
    gap: 10px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 8px;
    border-radius: 12px;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.05),
        0 2px 4px rgba(0, 0, 0, 0.05);
}

.view-controls button {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-controls button:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.view-controls button.active {
    background: white;
    color: #3b82f6;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.stat-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
}

.stat-info h3 {
    font-size: 36px;
    color: #0f172a;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -1px;
}

.stat-info p {
    color: #64748b;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Projects Section */
.projects-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.5);
    position: relative;
    overflow: hidden;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-header h3 {
    font-size: 24px;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    padding-left: 15px;
}

.section-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.filter-controls {
    display: flex;
    gap: 20px;
}

.filter-controls select {
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #334155;
    font-weight: 500;
    cursor: pointer;
    min-width: 180px;
    font-size: 15px;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 50px;
}

.filter-controls select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.1),
        0 4px 12px rgba(59, 130, 246, 0.1);
}

/* Projects Container */
.projects-container {
    transition: all 0.3s ease;
}

/* Grid View */
.projects-container.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

/* List View */
.projects-container.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Project Cards */
.project-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.5);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.grid-view .project-card {
    height: 100%;
}

.list-view .project-card {
    display: flex;
    align-items: stretch;
    padding-right: 25px;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
}

.project-header {
    padding: 25px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.list-view .project-header {
    border-bottom: none;
    min-width: 280px;
    border-right: 1px solid rgba(226, 232, 240, 0.5);
    background: transparent;
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.project-url {
    color: #3b82f6;
    font-size: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.project-url::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.project-url:hover {
    color: #2563eb;
}

.project-url:hover::after {
    width: 100%;
}

.project-type {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.project-type.web { 
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8; 
    border: 1px solid rgba(29, 78, 216, 0.2);
}
.project-type.webapp { 
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0369a1; 
    border: 1px solid rgba(3, 105, 161, 0.2);
}
.project-type.mobile { 
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e; 
    border: 1px solid rgba(146, 64, 14, 0.2);
}
.project-type.ecommerce { 
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #be185d; 
    border: 1px solid rgba(190, 24, 93, 0.2);
}
.project-type.dashboard { 
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #7c3aed; 
    border: 1px solid rgba(124, 58, 237, 0.2);
}
.project-type.other { 
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534; 
    border: 1px solid rgba(22, 101, 52, 0.2);
}

.project-body {
    padding: 25px;
}

.list-view .project-body {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-description {
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.list-view .project-description {
    margin-bottom: 0;
    flex-grow: 1;
    margin-right: 35px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tech-tag {
    padding: 8px 16px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #475569;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(148, 163, 184, 0.2);
    letter-spacing: 0.3px;
}

.tech-tag:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.list-view .project-footer {
    border-top: none;
    border-left: 1px solid rgba(226, 232, 240, 0.5);
    flex-direction: column;
    justify-content: center;
    min-width: 180px;
    background: transparent;
}

.project-status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 
        0 0 0 2px rgba(255, 255, 255, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.8;
}

.status-active { 
    background-color: #10b981; 
    color: #10b981;
}
.status-inactive { 
    background-color: #ef4444; 
    color: #ef4444;
}
.status-maintenance { 
    background-color: #f59e0b; 
    color: #f59e0b;
}
.status-development { 
    background-color: #8b5cf6; 
    color: #8b5cf6;
}

.project-date {
    color: #64748b;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.btn-view {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-edit {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-delete {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.action-btn:hover {
    transform: translateY(-3px);
}

.btn-view:hover { 
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}
.btn-edit:hover { 
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.btn-delete:hover { 
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.1);
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 80px;
    color: #64748b;
}

.loading i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #3b82f6;
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading p {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
display: flex;
}

.modal-content {
background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
border-radius: 24px;
width: 100%;
max-width: 600px;
max-height: 90vh;
overflow-y: auto;
box-shadow: 
0 30px 80px rgba(0, 0, 0, 0.4),
0 8px 20px rgba(0, 0, 0, 0.3);
animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
border: 1px solid rgba(255, 255, 255, 0.2);
position: relative;
display: flex;
flex-direction: column;
}

.modal-content::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 30px 35px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.modal-header h3 {
    font-size: 24px;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.close-modal {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.close-modal:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #334155;
    transform: rotate(90deg);
}

form {
    padding: 35px;
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #334155;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    font-weight: 500;
    color: #334155;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.05),
        0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.1),
        0 4px 20px rgba(59, 130, 246, 0.15);
    background: white;
}

.form-row {
    display: flex;
    gap: 25px;
}

.form-row .form-group {
    flex: 1;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    font-weight: 500;
    color: #475569;
    transition: color 0.3s ease;
}

.checkbox-group label:hover {
    color: #334155;
}

.checkbox-group input {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    appearance: none;
}

.checkbox-group input:checked {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
}

.checkbox-group input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.form-actions {
    display: flex !important;
    justify-content: flex-end;
    gap: 20px;
    padding: 24px 35px;
    margin-top: 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.btn-primary, .btn-secondary {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 30px rgba(59, 130, 246, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Project Details Modal */
.project-details {
    padding: 35px;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.details-title h3 {
    font-size: 28px;
    color: #0f172a;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.details-url a {
    color: #3b82f6;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.details-url a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.details-url a:hover {
    color: #2563eb;
}

.details-url a:hover::after {
    width: 100%;
}

.details-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 35px;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.meta-value {
    font-weight: 600;
    color: #334155;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.details-description h4,
.details-tech h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.3px;
    position: relative;
    padding-left: 15px;
}

.details-description h4::before,
.details-tech h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.details-description p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 35px;
    font-size: 16px;
    letter-spacing: 0.3px;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

.tech-list span {
    padding: 12px 20px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #475569;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.tech-list span:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Featured Project */
.project-card.featured {
    border: 2px solid #f59e0b;
    position: relative;
    box-shadow: 
        0 8px 25px rgba(245, 158, 11, 0.2),
        0 4px 6px rgba(0, 0, 0, 0.1);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 
        0 4px 15px rgba(245, 158, 11, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    z-index: 2;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .sidebar {
        width: 80px;
        padding: 25px 15px;
    }
    
    .logo h1, 
    .nav-menu li span,
    .footer-info p span:not(#totalProjects),
    #addProjectBtn span {
        display: none;
    }
    
    .logo {
        justify-content: center;
        padding-bottom: 20px;
    }
    
    .logo i {
        font-size: 36px;
    }
    
    .nav-menu li {
        justify-content: center;
        padding: 18px;
    }
    
    .nav-menu li i {
        font-size: 22px;
    }
    
    #addProjectBtn {
        padding: 18px;
    }
    
    .main-content {
        margin-left: 80px;
        max-width: calc(100% - 80px);
        padding: 30px;
    }
}

@media (max-width: 992px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-container.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-right {
        width: 100%;
    }
    
    .search-box {
        flex-grow: 1;
        width: auto;
    }

    .filter-controls select {
        min-width: 0;
    }

    .list-view .project-header {
        min-width: 220px;
    }

    .list-view .project-footer {
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 20px;
    }
    
    .logo {
        width: 100%;
        margin-bottom: 20px;
        justify-content: center;
    }
    
    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        order: 3;
        margin-top: 20px;
    }
    
    .nav-menu li {
        margin-bottom: 0;
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .add-project {
        order: 2;
        margin: 0;
        flex: 1;
    }
    
    .footer-info {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        max-width: 100%;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .projects-container.grid-view {
        grid-template-columns: 1fr;
    }
    
    .list-view .project-card {
        flex-direction: column;
        padding-right: 0;
    }
    
    .list-view .project-header,
    .list-view .project-footer {
        width: 100%;
        border-right: none;
        border-left: none;
    }
    
    .list-view .project-body {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .list-view .project-description {
        margin-right: 0;
        margin-bottom: 25px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-controls {
        width: 100%;
    }
    
    .filter-controls select {
        flex-grow: 1;
    }
    
    .modal-content {
        margin: 10px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .header-right {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .view-controls {
        align-self: flex-start;
    }
    
    .project-footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    
    .details-meta {
        flex-direction: column;
        gap: 20px;
    }
    
    .modal-header, 
    .modal-content,
    .project-details {
        padding: 20px;
    }
}

/* Premium Effects */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: #0f172a;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 5px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

/* Smooth transitions */
* {
    scroll-behavior: smooth;
}

/* Focus styles */
:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}