/* ==================================================================
   STATUS PAGE CUSTOM STYLING
   
   This stylesheet customizes the Atlassian Statuspage appearance
   with clean, minimal design and professional UI components.
   
   Sections:
   1. Layout & Container Setup
   2. Status Legend
   3. Component Groups
   4. Maintenance Section
   5. Incidents Section
   6. Footer Styling
   7. Responsive Design
   ================================================================== */

/* ==================================================================
   1. LAYOUT & CONTAINER SETUP
   ================================================================== */

/* One-column layout configuration
   Adjust nth-child values based on your component group order */
.components-container.one-column > div:nth-child(2) {
    margin-bottom: 0;
}



.components-container.one-column > div:nth-child(4) {
    margin-bottom: 100px;
}

/* Production environment label */
.components-container.one-column > div:nth-child(1)::before {
    content: "Production";
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* Sandbox environment label */
.components-container.one-column > div:nth-child(5)::before {
    content: "Sandbox";
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* Hide default UI elements */
#show-updates-dropdown {
    display: none;
}

a.subscribe {
    display: none;
}

/* Clean up component container spacing */
.components-container {
    margin-top: 0;
}

/* ==================================================================
   2. STATUS LEGEND
   
   Visual indicator showing all possible system statuses with
   color-coded dots for quick reference
   ================================================================== */

/* Legend container with subtle borders */
.components-container.one-column::before {
    content: "";
    display: block;
    margin: 30px 0 40px 0;
    padding: 16px 0;
    text-align: center;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    background: #fafafa;
}

/* Legend text with color-coded dots
   Uses background gradients to colorize specific characters */
.components-container.one-column::after {
    content: "●  Operational     ●  Degraded Performance     ●  Partial Outage     ●  Maintenance";
    display: block;
    text-align: center;
    font-size: 13px;
    color: #666;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    margin-top: -52px;
    padding: 16px 0;
    
    /* Gradient overlays for dot colors */
    background: linear-gradient(
        to right,
        transparent 0%,
        transparent calc(10% - 8px),
        #22c55e calc(10% - 8px),  /* Green - Operational */
        #22c55e calc(10% - 6px),
        transparent calc(10% - 6px),
        transparent calc(35% - 8px),
        #f59e0b calc(35% - 8px),  /* Yellow - Degraded */
        #f59e0b calc(35% - 6px),
        transparent calc(35% - 6px),
        transparent calc(60% - 8px),
        #ef4444 calc(60% - 8px),  /* Red - Outage */
        #ef4444 calc(60% - 6px),
        transparent calc(60% - 6px),
        transparent calc(85% - 8px),
        #94a3b8 calc(85% - 8px),  /* Gray - Maintenance */
        #94a3b8 calc(85% - 6px),
        transparent calc(85% - 6px)
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==================================================================
   3. COMPONENT GROUPS
   
   Styling for component status displays and uptime charts
   ================================================================== */

/* Add your component group styling here as needed */

/* ==================================================================
   4. MAINTENANCE SECTION
   
   Scheduled maintenance announcements and updates
   ================================================================== */

/* Main maintenance container - minimal styling */
.scheduled-maintenances-container {
    margin-top: 50px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

/* Maintenance section header */
.scheduled-maintenances-container h2 {
    background: transparent;
    color: #333;
    margin: 0 0 20px 0;
    padding: 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.3px;
    border: none;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 12px;
}

/* Individual maintenance item */
.scheduled-maintenance {
    border-bottom: 1px solid #e8e8e8;
    background: #ffffff;
    transition: background-color 0.15s ease;
    padding: 20px 0;
}

.scheduled-maintenance:hover {
    background: #fafafa;
}

.scheduled-maintenance:last-child {
    border-bottom: none;
}

/* Maintenance title */
.scheduled-maintenance .incident-title {
    padding: 0;
    margin: 0 0 10px 0;
}

.scheduled-maintenance .incident-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.5;
}

.scheduled-maintenance .incident-title a:hover {
    color: #0066cc;
    text-decoration: none;
}

/* Maintenance timestamp display */
.scheduled-maintenance .incident-title .pull-right {
    float: right;
    background: transparent;
    color: #666;
    padding: 0;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    margin-top: 0;
    border: none;
}

/* Maintenance updates container */
.scheduled-maintenance .updates-container {
    padding: 0;
    margin: 10px 0 0 0;
}

/* Individual maintenance update */
.scheduled-maintenance .update {
    background: transparent;
    border-left: none;
    padding: 8px 0;
    border-radius: 0;
    margin-top: 0;
}

/* Maintenance update message text */
.scheduled-maintenance .update .whitespace-pre-wrap {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 8px;
}

/* Maintenance update timestamp */
.scheduled-maintenance .update small {
    color: #999;
    font-size: 12px;
    font-style: normal;
}

/* Remove default side indicator */
.scheduled-maintenance::before {
    display: none;
}

/* Empty state message when no maintenance scheduled */
.scheduled-maintenances-container:empty::after {
    content: "No scheduled maintenance";
    display: block;
    padding: 20px 0;
    text-align: left;
    color: #999;
    font-style: normal;
    background: transparent;
    font-size: 14px;
}

/* ==================================================================
   5. INCIDENTS SECTION
   
   Past incidents, ongoing issues, and status updates
   ================================================================== */

/* Main incidents container */
.incidents-list {
    margin-top: 50px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

/* Incidents section header */
.incidents-list h2#past-incidents {
    background: transparent;
    color: #333;
    margin: 0 0 20px 0;
    padding: 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.3px;
    border: none;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 12px;
}

/* Individual status day container */
.status-day {
    border-bottom: 1px solid #e8e8e8;
    background: transparent;
    transition: none;
    position: relative;
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    padding: 20px 0;
}

.status-day:last-child {
    border-bottom: none;
}

.status-day:hover {
    background: transparent;
}

/* Date header for each day */
.status-day .date {
    background: transparent;
    padding: 0 0 12px 0;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    border-bottom: none;
    margin: 0;
}

/* Unresolved incidents warning box */
.status-day p.color-secondary {
    background: #fff9f9;
    border: 1px solid #ffe5e5;
    border-radius: 4px;
    padding: 16px;
    margin: 12px 0;
    color: #666;
    line-height: 1.6;
    font-size: 14px;
    position: relative;
    border-left: 3px solid #ef4444;
}

/* Unresolved label */
.status-day p.color-secondary::before {
    content: "Unresolved";
    display: inline;
    font-weight: 600;
    font-size: 13px;
    color: #ef4444;
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-day p.color-secondary::after {
    display: none;
}

/* No incidents message */
.status-day.no-incidents p {
    padding: 0;
    margin: 0;
    color: #999;
    font-style: normal;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 14px;
}

.status-day.no-incidents p::before {
    content: "";
    display: none;
}

/* Incident details container */
.incident-container {
    padding: 0;
    background: transparent;
    margin: 12px 0 0 0;
}

/* Incident title */
.incident-title {
    padding: 0 0 10px 0;
    margin: 0;
    border-bottom: none;
}

.incident-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.5;
}

.incident-title a:hover {
    color: #0066cc;
    text-decoration: none;
}

/* Hide impact level badges (using minimal design) */
.incident-title.impact-none::before,
.incident-title.impact-minor::before,
.incident-title.impact-major::before,
.incident-title.impact-critical::before {
    display: none;
}

/* Incident updates container */
.incident-container .updates-container {
    padding: 0;
    margin: 0;
}

/* Individual incident update */
.incident-container .update {
    background: transparent;
    border-left: none;
    padding: 8px 0;
    border-radius: 0;
    margin-top: 8px;
}

/* Update status labels (Resolved, Investigating, etc.) */
.incident-container .update strong {
    color: #333;
    font-weight: 600;
    font-size: 13px;
    text-transform: capitalize;
}

/* Unified styling for all update statuses */
.update.resolved strong,
.update.investigating strong,
.update.identified strong,
.update.monitoring strong {
    color: #333;
}

/* Update message text */
.incident-container .update .whitespace-pre-wrap {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 6px;
    display: inline;
}

/* Update timestamp */
.incident-container .update small {
    color: #999;
    font-size: 12px;
    font-style: normal;
    display: inline;
    margin-top: 0;
    margin-left: 6px;
}

/* Remove default colored indicators */
.status-day::before {
    display: none;
}

.status-day.no-incidents::before {
    display: none;
}

/* ==================================================================
   6. FOOTER STYLING
   
   Footer links, branding, and additional information
   ================================================================== */

/* Main footer container */
.page-footer {
    margin-top: 80px;
    padding: 40px 0 30px 0;
    border-top: 1px solid #e8e8e8;
    background: #fafafa;
}

/* Footer content wrapper */
.page-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer navigation links */
.page-footer a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.page-footer a:hover {
    color: #0066cc;
    text-decoration: none;
}

/* Footer text styling */
.page-footer p,
.page-footer span {
    color: #999;
    font-size: 13px;
    line-height: 1.6;
}

/* Powered by Statuspage link */
.powered-by {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
    text-align: center;
}

.powered-by a {
    color: #999;
    font-size: 12px;
}

.powered-by a:hover {
    color: #666;
}

/* Footer grid layout for links */
.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-links a {
    display: inline-block;
}

/* Social media links in footer */
.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Copyright notice */
.copyright {
    text-align: center;
    margin-top: 20px;
    color: #999;
    font-size: 12px;
}

/* ==================================================================
   7. RESPONSIVE DESIGN
   
   Mobile and tablet optimizations
   ================================================================== */

/* Tablet and below */
@media (max-width: 768px) {
    /* Adjust status legend for mobile */
    .components-container.one-column::after {
        content: "●  Operational\A●  Degraded\A●  Outage\A●  Maintenance";
        white-space: pre-line;
        font-size: 12px;
        line-height: 2;
        padding: 12px 0;
    }
    
    /* Reduce header sizes */
    .scheduled-maintenances-container h2,
    .incidents-list h2#past-incidents {
        font-size: 20px;
    }
    
    /* Adjust date headers */
    .status-day .date {
        font-size: 14px;
    }
    
    /* Reduce incident title size */
    .incident-title a,
    .scheduled-maintenance .incident-title a {
        font-size: 14px;
    }
    
    /* Stack footer links vertically */
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    /* Reduce footer padding */
    .page-footer {
        margin-top: 50px;
        padding: 30px 0 20px 0;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    /* Further reduce header sizes */
    .scheduled-maintenances-container h2,
    .incidents-list h2#past-incidents {
        font-size: 18px;
    }
    
    /* Adjust component labels */
    .components-container.one-column > div:nth-child(1)::before,
    .components-container.one-column > div:nth-child(5)::before {
        font-size: 16px;
    }
}

/* ==================================================================
   END OF STYLESHEET
   ================================================================== */