/* Common Styles for Specright Status Pages */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Roboto, sans-serif;
    /* background-color: #f9fafb; */
    color: #111827;
}

/* Header */
.header {
    background-color: #000000;
    border-bottom: 1px solid #000000;
}

.header-content {
    max-width: 896px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
    text-align: center;
}

.logo {
    height: 17px;
}

/* Main Content */
.main {
    max-width: 896px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Card */
.card {
    background-color: white;
    /* border-radius: 0.5rem; */
    /* box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1); */
    padding: 2rem;
}

/* Typography */
h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

/* Links */
.back-link {
    display: inline-block;
    color: #00D000;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.back-link:hover {
    color: #00b400;
    text-decoration: underline;
}

.link {
    color: #00D000;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.link:hover {
    color: rgb(0, 195, 0);
    text-decoration: underline;
}

/* Status Badges */
.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.status-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.status-normal {
    color: #00D000;
}

.status-normal .status-dot {
    background-color: #00D000;
}

.status-degraded, .status-maintenance {
    color: #FFA500;
}

.status-degraded .status-dot, .status-maintenance .status-dot {
    background-color: #FFA500;
}

.status-down {
    color: #DC3545;
}

.status-down .status-dot {
    background-color: #DC3545;
}

.status-resolved {
    color: #00D000;
}

.status-resolved .status-dot {
    background-color: #00D000;
}

/* Index Page Specific Styles */
.question-text {
    color: #374151;
    margin-bottom: 2rem;
}

.divider {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
}

.answer-text {
    color: #374151;
    margin-bottom: 1.5rem;
}

.links-list {
    list-style: none;
}

.links-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.bullet {
    color: #00D000;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.external-icon {
    width: 1rem;
    height: 1rem;
    margin-left: 0.25rem;
}

/* Status Page Specific Styles */
.description {
    color: #374151;
    margin-bottom: 2rem;
}

.status-section {
    border: 1px solid #00d000;
    /* border-radius: 0.5rem; */
}

.status-header {
    /* background-color: #000000; */
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #00d000;
}

.status-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.status-body {
    padding: 1.5rem;
}

.service-item {
    margin-bottom: 1rem;
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.service-button:hover {
    background-color: #f9fafb;
}

.service-name {
    font-weight: 600;
    color: #111827;
}

.service-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chevron {
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
}

.sub-services {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.sub-service-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.sub-service-button:hover {
    background-color: #f9fafb;
}

.sub-service-name {
    color: #374151;
}

.sub-chevron {
    width: 1rem;
    height: 1rem;
    color: #9ca3af;
}

.last-updated {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
}

/* Service Detail Page Specific Styles */
.service-header {
    margin-bottom: 1.5rem;
}

.current-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-status-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.incidents-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.incident {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}

.incident-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.incident-title-section {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.incident-title {
    font-weight: 600;
    color: #111827;
}

.incident-date {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.incident-body {
    padding: 1rem 1.5rem;
}

.update {
    margin-bottom: 1rem;
}

.update:last-child {
    margin-bottom: 0;
}

.update-timestamp {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.update-message {
    color: #374151;
    white-space: pre-line;
    line-height: 1.6;
}

.update-divider {
    margin-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.no-incidents {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}
