﻿body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

#sidebar {
    min-width: 150px;
    max-width: 150px;
    background: #343a40;
    color: #fff;
    transition: margin-left 0.3s ease;
    margin-left: -150px;
}

    #sidebar.active {
        margin-left: 0;
    }

    #sidebar .sidebar-header {
        padding: 10px;
        background: #23272b;
    }

    #sidebar ul.components {
        padding: 20px 0;
    }

    #sidebar ul li a {
        padding: 10px 20px;
        display: block;
        color: #fff;
        text-decoration: none;
        transition: background 0.3s;
    }

        #sidebar ul li a:hover {
            background: #23272b;
        }

#content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

footer {
    padding: 20px;
    text-align: center;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

    .project-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(2, 117, 216, 0.2);
        border-color: rgba(2, 117, 216, 0.3);
    }

.project-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-content {
    padding: 30px;
}

.project-card h3 {
    margin-bottom: 15px;
}

/* Mobile devices - smaller sidebar */
@media (max-width: 767px) {
    #sidebar {
        max-width: 70vw;
        margin-left: -70vw;
        position: fixed;
        height: 100vh;
        z-index: 1000;
        overflow-y: auto;
    }

        #sidebar.active {
            margin-left: 0;
            box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5);
        }

    /* Overlay effect when sidebar is open */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
        pointer-events: none;
    }

    body.sidebar-open::after {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-content {
        padding: 15px;
    }

    footer {
        padding: 15px 10px;
        font-size: 0.85rem;
    }

        footer .d-flex {
            flex-direction: column;
            gap: 10px;
            text-align: center;
        }
}

/* Tablet and desktop */
@media (min-width: 768px) {
    .project-card {
        display: flex;
        flex-direction: row;
    }

    .project-image {
        width: 40%;
        height: auto;
        min-height: 280px;
    }

    .project-content {
        flex: 1;
    }
}
