/* Documentation Page Layout */
.doc-container {
    padding-top: 40px;
    padding-bottom: 80px;
}

/* Sidebar Styles */
.sidebar-doc {
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 20px;
    border-right: 1px solid #eee;
}

.sidebar-doc::-webkit-scrollbar {
    width: 4px;
}

.sidebar-doc::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.doc-category-title {
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
    margin: 30px 0 15px 15px;
    letter-spacing: 0.5px;
}

.doc-accordion {
    margin-bottom: 20px;
}

.doc-group {
    margin-bottom: 8px;
}

.doc-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    user-select: none;
}

.doc-group-header:hover {
    background-color: #f8f9fa;
}

.doc-group.expanded .doc-group-header {
    background-color: #eef6ff;
    color: #007bff;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.group-icon {
    font-size: 1.2rem;
    opacity: 0.7;
}

.doc-group.expanded .group-icon {
    opacity: 1;
}

.group-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.chevron-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.doc-group.expanded .chevron-icon {
    transform: rotate(90deg);
    opacity: 1;
}

.doc-menu {
    list-style: none;
    padding: 5px 0 5px 45px;
    margin: 0;
    display: none; /* Hidden by default */
}

.doc-group.expanded .doc-menu {
    display: block;
}

.doc-menu-item {
    margin-bottom: 2px;
}

.doc-menu-link {
    display: block;
    padding: 8px 10px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.doc-menu-link:hover {
    color: #007bff;
}

.doc-menu-item.active .doc-menu-link {
    color: #007bff;
    font-weight: 700;
}

/* Content Styles */
.content-doc {
    padding-left: 40px;
}

.doc-section {
    margin-bottom: 60px;
}

.doc-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0d2c49;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.doc-sub-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-top: 35px;
    margin-bottom: 15px;
}

.doc-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.doc-img-container {
    margin: 30px 0;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.doc-img-container img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.doc-img-container:hover img {
    transform: scale(1.02);
}

/* Breadcrumbs */
.doc-breadcrumb {
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.doc-breadcrumb a {
    color: rgb(0, 123, 255);
    text-decoration: none;
}

.doc-breadcrumb .separator {
    margin: 0 10px;
    color: #ccc;
}

.doc-breadcrumb .current {
    color: #999;
}

/* Mobile Category Toggle Button */
.btn-doc-mobile-toggle {
    justify-content: center;
    width: 40px;
    position: fixed;
    height: 40px;
    bottom: 60px;
    right: 14px;
    z-index: 1050;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-doc-mobile-toggle i {
    font-size: 1.2rem;
}

.btn-doc-mobile-toggle.active {
    background-color: #dc3545;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

/* Responsive */
@media (max-width: 991.98px) {
    .sidebar-doc {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        background: white;
        z-index: 1060;
        padding: 30px 20px;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }
    
    .sidebar-doc.mobile-active {
        left: 0;
    }

    .content-doc {
        padding-left: 0;
        margin-top: 20px;
    }

    .doc-section-title {
        font-size: 1.6rem;
    }
}

/* Registration Success Screen */
.registration-success {
    background-color: #fff;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.success-icon .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.2);
}

.success-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0d2c49;
}

/* Info Cards */
.info-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.info-card-blue {
    background-color: #eef6ff;
}

.info-card-green {
    background-color: #f0fff4;
}

.info-card-orange {
    background-color: #fffaf0;
}

.info-label {
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.info-value {
    font-size: 1.25rem;
}

.btn-copy {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    padding: 10px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-copy:hover {
    color: #0d2c49;
}

/* Confetti */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.confetti {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #ffc107;
    border-radius: 4px;
    animation: confetti-fall 10s ease-in-out infinite;
}

@keyframes confetti-fall {
    0% { transform: translateY(-50px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti.c1 { left: 10%; background-color: #007bff; animation-delay: 0s; transform: rotate(45deg); width: 20px; height: 10px; }
.confetti.c2 { left: 25%; background-color: #28a745; animation-delay: 2s; transform: rotate(30deg); border-radius: 50%; width: 12px; height: 12px; }
.confetti.c3 { left: 50%; background-color: #dc3545; animation-delay: 5s; transform: rotate(15deg); width: 25px; height: 5px; }
.confetti.c4 { left: 75%; background-color: #ffc107; animation-delay: 1s; transform: rotate(60deg); width: 10px; height: 20px; }
.confetti.c5 { left: 90%; background-color: #6c757d; animation-delay: 7s; transform: rotate(120deg); width: 18px; height: 18px; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .success-title {
        font-size: 1.8rem;
    }
    .info-value {
        font-size: 1.1rem;
    }
}
