:root {
    --page-bg: #f5f5f5;
    --header-text: #464646;
    --white: #ffffff;
    --cert-id-color: #6b6b6b;
    --modal-backdrop: rgba(0, 0, 0, 0.8);
    --modal-border: #e0e0e0;
    --download-bg: #4CAF50;
    --download-hover: #45a049;
    --close-bg: #f5f5f5;
    --close-text: #333;
    --close-hover: #e0e0e0;
    --pdf-bg: #f9f9f9;
    --font-main: "Plus Jakarta Sans", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    display: flex;
    background-color: var(--page-bg);
}

/* App container */
.app {
    /* max-width: 420px; */
    background: transparent;
    padding: 16px;
    border-radius: 28px;
    width: 100%;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 90px;
    padding: 12px 0;
    margin-bottom: 8px;
    background: none !important;
}

.header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--header-text);
}

/* Mobile only - center h3 title */
@media (max-width: 767px) {
    .header h3 {
        text-align: center;
        flex: 1;
        margin-right: 90px;
    }
}

/* Breadcrumb styles */
.breadcrumb {
    display: none !important; /* Hide on mobile by default */
}

.app .breadcrumb {
    display: none !important; /* Higher specificity */
}

@media (min-width: 768px) {
    .breadcrumb {
        display: flex !important;
        align-items: center;
        gap: 6px;
        font-size: 16px;
        color: #808080;
        padding: 40px 0px;
        position: sticky;
        top: 0;
        z-index: 150;
    }
    
    .app .breadcrumb {
        display: flex !important;
    }
}

@media (min-width: 1024px) {
    .breadcrumb-divider {
        display: block;
    }
}

/* Certificate list */
.certificate-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Certificate card */
.certificate-card {
    background: var(--white);
    border-radius: 31px;
    padding: 40px 28px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.11);
}

/* Certificate ID */
.cert-id {
    font-size: 12px;
    font-weight: 500;
    color: var(--cert-id-color);
}

/* Title */
.certificate-card h4 {
    margin-top: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--header-text);
    line-height: 25px;
}

/* Footer */
.cert-footer {
    margin-top: 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Date text */
.cert-date {
    font-size: 12px;
    font-weight: 500;
    color: var(--cert-id-color);
}

/* View certificate button */
.view-link {
    display: flex;
    align-items: center;
    /* gap: 4px; */
    font-size: 14px;
    font-weight: 700;
    color: #3A356B;
    text-decoration: none;
}

 /* Modal styles */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--modal-backdrop);
            z-index: 1000;
            overflow: hidden;
        }

        .modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background: var(--white);
            width: 95%;
            height: 95%;
            max-width: 1200px;
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            border-bottom: 1px solid var(--modal-border);
        }

        .modal-header h3 {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
        }

        .modal-actions {
            display: flex;
            gap: 12px;
        }

        .modal-btn {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            font-family: var(--font-main);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
        }

        .download-btn {
            background-color: var(--download-bg);
            color: var(--white);
        }

        .download-btn:hover {
            background-color: var(--download-hover);
        }

        .close-btn {
            background-color: var(--close-bg);
            color: var(--close-text);
        }

        .close-btn:hover {
            background-color: var(--close-hover);
        }

        .pdf-viewer {
            flex: 1;
            overflow: auto;
            padding: 20px;
            background-color: var(--pdf-bg);
        }

        .pdf-viewer iframe {
            width: 100%;
            height: 100%;
            border: none;
            border-radius: 8px;
            background: var(--white);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .certificate-card:last-child {
    margin-bottom: 36px;
}

/* Tablet & Laptop */
@media (min-width: 768px) {
 

    #sidebar-placeholder {
        display: block;
        width: 280px;
        flex-shrink: 0;
    }

    .app {
        /* max-width: 600px; */
        margin-left: 30px;
        margin-right: 30px;
        padding: 0px;
    }

    .header {
        margin-bottom: 20px;
        justify-content: center;
        gap: 0;
    }

    .header a {
        display: none; /* hide back arrow */
    }

    .header h3 {
        text-align: center;
        font-size: 22px;
    }

    .course-list {
        gap: 12px;
    }

    .course-card {
        padding: 36px 24px;
    }

    .course-card:last-child {
        margin-bottom: 0px;
    }
}

/* Desktop - larger screens */
@media (min-width: 1024px) {
    .app {
        /* max-width: 700px; */
        padding: 0px;
    }

    .header h3 {
        font-size: 24px;
    }
    .certificate-list{
        margin-top: 30px;
    }
    .course-card {
        padding: 40px 28px;
    }

    .course-card h4 {
        font-size: 16px;
    }

    .lesson {
        font-size: 16px;
    }
    
    .cert-id{
        font-size: 14px;
    }
    .cert-date{
        font-size: 14px;
    }
}

