html, body {
    height: 100%;
    margin: 0;
}

.main-wrapper {
    display: flex;
    min-height: 100vh;
}


.editor-container {
  max-height: 400px;
  height: auto;
  min-height: 100px;
  border: 1px solid #333;
}


 .editor-output-block {
    margin-top: 10px;
    padding-top: 10px;
  }

  /* Code Copy Block */
#codeEditor {
  user-select: none;
  -webkit-user-select: none;
}
#codeEditor.copy-unlocked {
  user-select: text;
  -webkit-user-select: text;
}
/* ===============================
    BUTTON PLACEHOLDER
================================= */
#indexPageArea #Button-placeholder {
    min-height: 100vh;
    background-color: #E3F2FD;  /* Light sky blue */
    padding-top: 20px;
}

/* Editor box */
#indexPageArea .editor-container {
    max-height: 400px;
    height: auto;
    min-height: 100px;
    border: 1px solid #1E88E5;
}

/* ===============================
    DROPDOWN MENU
================================= */
#indexPageArea .dropdown-menu {
    position: static !important;
    float: none;
    margin-top: 0.25rem;
    width: 100%;
}

/* ===============================
    PRIMARY BUTTON (Next / Previous)
    AIT Logo-Matched Animated Gradient - PREMIUM LOOK
================================= */
#indexPageArea .btn-primary {
    /* Updated: Using Logo Dark Blue (#0D336D) and Logo Cyan (#00C2E8) */
    background: linear-gradient(-45deg, #0D336D, #00C2E8, #FFFFFF, #00C2E8, #0D336D) !important;
    background-size: 400% 400% !important;
    animation: gradient-animation 16s ease infinite !important;

    border: none !important;
    font-weight: 600 !important;
    padding: 8px 22px !important;
    border-radius: 8px !important;
    color: #f5f6f9 !important; /* Text matches the Logo Dark Blue for best contrast */
    transition: 0.35s ease-in-out !important;
}

#indexPageArea .btn-primary:hover {
    transform: translateY(-2px);
    /* Enhanced Premium Shadow: Stronger lift using the new Logo Dark Blue color */
    box-shadow: 0 8px 18px rgba(13, 51, 109, 0.45); 
}

/* Gradient Animation */
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===============================
    SUCCESS BUTTON (AIT Logo Gradient) - OFFICIAL LOOK
================================= */
#indexPageArea .btn-success {
    /* Updated: Clean gradient matching the Logo Dark Blue and Logo Cyan */
    background: linear-gradient(135deg, #0D336D, #00C2E8) !important;
    border: 1px solid #0D336D !important; /* Border matches the Logo Dark Blue */
    color: #fff !important;
    font-weight: 600;
    padding: 8px 22px !important; 
    border-radius: 8px !important; 
    transition: 0.3s ease-in-out;
}

#indexPageArea .btn-success:hover {
    transform: translateY(-2px);
    /* Premium Look: Stronger shadow using the new Logo Dark Blue color */
    box-shadow: 0 8px 18px rgba(13, 51, 109, 0.6); 
}

#indexPageArea .btn-success:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* ===============================
    SIDEBAR + MAIN LAYOUT
================================= */
#indexPageArea .responsive-wrapper {
    display: flex;
    min-height: 100vh;
}

#indexPageArea .sidebar-area {
    width: 25%;
    background: #E3F2FD;  /* Light blue */
}

#indexPageArea .main-content-area {
    width: 75%;
    padding: 24px;
}

/* ===============================
    MOBILE VIEW FIXES
================================= */
@media (max-width: 767px) {
    #indexPageArea .container-fluid > .row {
        display: block !important;
    }
    #indexPageArea .col-md-3, 
    #indexPageArea .col-md-9 {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        display: block !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    #indexPageArea #Button-placeholder {
        min-height: 0 !important;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    #indexPageArea .editor-output-block {
        margin-top: 10px;
        padding-top: 10px;
    }
}


/* ===============================
    RESPONSIVE TOP PADDING
================================= */
.responsive-padding {
    padding-top: 90px;
}

@media (max-width: 992px) {
    .responsive-padding {
        padding-top: 70px;
    }
}

@media (max-width: 768px) {
    .responsive-padding {
        padding-top: 60px;
    }
}

@media (max-width: 576px) {
    .responsive-padding {
        padding-top: 50px;
    }
}

.code-container {
    position: relative;
    margin-top: 20px;
}

.code-block {
    background: #0d1117;
    color: #c9d1d9;
    padding: 20px;
    border-radius: 14px;
    font-family: Consolas, monospace;
    font-size: 14px;
    overflow-x: auto;
}

.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}

.copy-btn svg {
    width: 15px;
    height: 15px;
    fill: white;
    transition: transform 0.3s ease;
}

.copy-btn.copied {
    background: #238636;
    border-color: #2ea043;
}

.copy-btn.copied svg {
    transform: scale(0);
}


