/* ============================================================
   style.css — Siemens Partner Support Dashboard Styles
   ============================================================ */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #003366;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header p {
    margin: 5px 0 0;
    font-size: 1.1em;
    opacity: 0.9;
}

main {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

.dashboard-section {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    padding: 25px;
}

.dashboard-section h2 {
    color: #0055a5;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Summary Cards */
.summary-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
}

.card {
    background-color: #e6f2ff;
    border: 1px solid #cce0ff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card h3 {
    color: #003366;
    margin-top: 0;
    font-size: 1.2em;
}

.metric-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #0055a5;
    margin: 10px 0 0;
}

/* Content Boxes */
.content-box {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
}

/* Escalation Key Box */
.escalation-key-box {
    background-color: #f0f6ff;
    border: 1px solid #cce0ff;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.9em;
    color: #003366;
}

/* Escalation Badge */
.escalation-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.82em;
    font-weight: bold;
}

/* Table Styles */
#requests-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.9em;
}

#requests-table th,
#requests-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

#requests-table th {
    background-color: #0055a5;
    color: white;
    font-weight: bold;
    white-space: nowrap;
}

#requests-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

#requests-table a {
    color: #0055a5;
    text-decoration: none;
}

#requests-table a:hover {
    text-decoration: underline;
}

/* Summary column — constrain width to prevent blowout */
#requests-table td:nth-child(7) {
    max-width: 220px;
    word-wrap: break-word;
    font-size: 0.85em;
    color: #444;
}

/* Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: bold;
    display: inline-block;
    white-space: nowrap;
}

.status-new         { background-color: #cce5ff; color: #004085; }
.status-in-progress { background-color: #fff3cd; color: #856404; }
.status-resolved    { background-color: #d4edda; color: #155724; }
.status-escalated   { background-color: #f8d7da; color: #721c24; }
.status-closed      { background-color: #e2e3e5; color: #383d41; }

/* Chart Containers */
.chart-container {
    position: relative;
    margin: 20px auto;
    height: 300px;
    width: 80%;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    background-color: #003366;
    color: #ffffff;
    font-size: 0.9em;
}