/* sprintIntel — custom styles */

/* -------------------------------------------------------------------------
   Login page
------------------------------------------------------------------------- */
body.login-page {
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

/* -------------------------------------------------------------------------
   Navbar
------------------------------------------------------------------------- */
.navbar {
    border-bottom: 2px solid #0d47a1;
}

.navbar-brand {
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    color: #fff !important;
}

/* -------------------------------------------------------------------------
   Project tabs
------------------------------------------------------------------------- */
#projectTabs .nav-link {
    color: #495057;
    font-weight: 500;
    border-radius: 0;
    padding: 0.5rem 1.25rem;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

#projectTabs .nav-link:hover {
    color: #0d47a1;
    border-bottom-color: #90caf9;
}

#projectTabs .nav-link.active {
    color: #0d47a1;
    background: transparent;
    border-bottom: 3px solid #0d47a1;
    font-weight: 600;
}

/* -------------------------------------------------------------------------
   Section cards
------------------------------------------------------------------------- */
.card {
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.section-header {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.95rem;
    color: #212529;
    border-bottom: 1px solid #dee2e6;
    padding: 0.6rem 1rem;
}

.sprint-goal {
    font-size: 1.05rem;
    color: #212529;
}

/* -------------------------------------------------------------------------
   Confluence page content rendered inside the Sprint Goal card
------------------------------------------------------------------------- */
.confluence-content {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #172b4d;
    overflow-x: auto;        /* prevent wide tables from breaking layout */
}

.confluence-content > *:last-child { margin-bottom: 0; }

.confluence-content p      { margin-bottom: 0.5rem; }
.confluence-content h1,
.confluence-content h2     { font-size: 1.15rem; font-weight: 700; margin: 1rem 0 0.4rem; }
.confluence-content h3,
.confluence-content h4     { font-size: 1rem;    font-weight: 700; margin: 0.85rem 0 0.35rem; }
.confluence-content h5,
.confluence-content h6     { font-size: 0.9rem;  font-weight: 700; margin: 0.75rem 0 0.3rem; }

.confluence-content ul,
.confluence-content ol     { padding-left: 1.4rem; margin-bottom: 0.5rem; }
.confluence-content li     { margin-bottom: 0.2rem; }

.confluence-content blockquote {
    border-left: 3px solid #dee2e6;
    padding: 0.25rem 0.75rem;
    color: #6c757d;
    margin: 0.5rem 0;
}

.confluence-content table  {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}
.confluence-content th,
.confluence-content td     {
    border: 1px solid #dee2e6;
    padding: 0.4rem 0.65rem;
    vertical-align: top;
}
.confluence-content th     { background: #f4f5f7; font-weight: 600; }

.confluence-content a      { color: #0052cc; }
.confluence-content a:hover { text-decoration: underline; }

.confluence-content hr     { border-color: #dee2e6; margin: 0.75rem 0; }

/* -------------------------------------------------------------------------
   Story point summary cards
------------------------------------------------------------------------- */
.points-card {
    border: 1px solid #dee2e6;
}

.points-card--highlight {
    background: #e8f5e9;
    border-color: #a5d6a7;
}

.points-value {
    font-size: 2.8rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.1;
}

.points-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.3rem;
}

/* -------------------------------------------------------------------------
   Jira-style ticket tables
------------------------------------------------------------------------- */
.jira-table {
    font-size: 0.875rem;
}

.jira-table thead th {
    font-weight: 600;
    white-space: nowrap;
    background: #f4f5f7;
    color: #42526e;
    border-bottom: 2px solid #dfe1e6;
    padding: 0.5rem 0.75rem;
}

.jira-table tbody td {
    vertical-align: middle;
    padding: 0.45rem 0.75rem;
    color: #172b4d;
}

.jira-table tbody tr:hover {
    background: #f0f4ff;
}

.jira-table a {
    color: #0052cc;
    text-decoration: none;
    font-weight: 500;
}

.jira-table a:hover {
    text-decoration: underline;
}

/* Status badges */
.badge.bg-success   { background-color: #00875a !important; }
.badge.bg-primary   { background-color: #0052cc !important; }
.badge.bg-secondary { background-color: #6b778c !important; }

/* -------------------------------------------------------------------------
   AI analysis card
------------------------------------------------------------------------- */
#aiContent p {
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

#aiContent ol {
    padding-left: 1.2rem;
}

#aiContent ol li {
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

/* -------------------------------------------------------------------------
   Current Sprints button & hover dropdown
------------------------------------------------------------------------- */
#currentSprintsItem {
    position: relative;
    display: flex;
    align-items: stretch;
}

.current-sprints-btn {
    color: #0d6efd;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    border-radius: 4px 4px 0 0;
    padding: 0.5rem 1.1rem;
    border: 1px solid #dee2e6;
    border-bottom: 3px solid #0d47a1;
    background: #f0f4ff;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    align-self: flex-end;
}

.current-sprints-btn:hover {
    background: #dce8ff;
    color: #0d47a1;
}

.current-sprints-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 300px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    z-index: 1050;
    padding: 0.35rem 0;
}

.current-sprints-dropdown.visible {
    display: block;
}

.current-sprints-group + .current-sprints-group {
    border-top: 1px solid #e9ecef;
    margin-top: 0.15rem;
    padding-top: 0.15rem;
}

.current-sprint-project-header {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6c757d;
    padding: 0.5rem 1rem 0.2rem;
}

.current-sprint-item {
    display: block;
    width: 100%;
    padding: 0.35rem 1rem 0.35rem 1.4rem;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-size: 0.875rem;
    color: #172b4d;
    font-weight: 500;
    transition: background 0.1s;
}

.current-sprint-item:hover {
    background: #f0f4ff;
    color: #0d47a1;
}

.current-sprints-message {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #6c757d;
    font-style: italic;
}

/* -------------------------------------------------------------------------
   Responsive tweaks
------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .points-value {
        font-size: 2rem;
    }

    #projectTabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}
