/* ===== RESET & BASE STYLES ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* ===== SIDEBAR ===== */
.side-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100%;
    background: #2c3e50;
    color: white;
    padding: 20px 10px;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.side-nav .header-main {
    text-align: center;
    margin-bottom: 30px;
}

.side-nav .profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
    border: 2px solid white;
}

.side-nav h1 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.side-nav ul {
    list-style: none;
    padding-left: 0;
}

.side-nav ul li {
    margin: 12px 0;
}

.side-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.side-nav ul li a:hover {
    color: #ffdd57;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: 270px; /* leave space for sidebar */
    padding: 30px;
    transition: margin-left 0.3s ease;
}

header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

header .lead {
    font-size: 1.1rem;
    color: #555;
}

/* ===== MENU TOGGLE BUTTON FOR MOBILE ===== */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .side-nav {
        transform: translateX(-100%);
        width: 200px;
    }

    .side-nav.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    .menu-toggle {
        display: block;
        background:#2c3e50;
        color: white;
        padding: 10px 15px;
        cursor: pointer;
        border: none;
        font-size: 1.2rem;
        border-radius: 5px;
        margin-bottom: 15px;
    }
}

/* ===== CARDS ===== */
.card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card h2 {
    color:#2c3e50;
    margin-bottom: 15px;
}

.card h3 {
    color: #6a11cb;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* ===== TABLES ===== */
.table-wrapper {
    width: 100%;
    overflow-x: auto; /* horizontal scroll */
}

.card table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* optional for small tables */
    margin-top: 15px;
}

.card th, .card td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
    transition: background 0.3s ease;
}

.card th {
    background-color: #2c3e50;
    color: white;
}

.card tbody tr:hover {
    background-color: #f1f7ff;
}

/* ===== IMAGES / SCREENSHOTS ===== */
.screenshot img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ===== LIGHTBOX ===== */
#lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}


/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 992px) {
    .side-nav {
        width: 200px;
    }
    .main-content {
        margin-left: 220px;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .card {
        padding: 15px;
    }
    .main-content {
        padding: 10px;
    }
}
/* Make screenshots responsive and smaller */
.screenshot img {
    max-width: 50%;      /* image will not exceed container width */
    height: auto;         /* maintain aspect ratio */
    display: block;
    margin: 10px 0;       /* some spacing above and below */
    border-radius: 8px;   /* optional: rounded corners */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* optional: subtle shadow */
}

