/**
 * Main Theme Stylesheet
 * Professional Design with Dark Blue Theme
 */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* ============================================
   LAYOUT - 5% Border Left & Right
   ============================================ */
.container {
    width: 90%;
    max-width: 90%;
    margin: 0 auto;
    padding: 0 5%;
    background-color: #ffffff;
    min-height: 100vh;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    background-color: #1a3a5c;
    color: #ffffff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

.logo:hover {
    color: #e0e0e0;
}

/* Navigation Menu - Upper Right */
nav {
    position: relative;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 15px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: #2c5282;
    transform: translateY(-2px);
}

/* Dropdown Menu - Mouseover Exposure */
nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a3a5c;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 200px;
    border-radius: 4px;
    padding: 10px 0;
    z-index: 1000;
}

nav ul li:hover ul {
    display: block;
}

nav ul li ul li {
    width: 100%;
}

nav ul li ul li a {
    padding: 12px 20px;
    border-radius: 0;
}

nav ul li ul li a:hover {
    background-color: #2c5282;
    transform: none;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
main {
    padding: 40px 5%;
    min-height: calc(100vh - 200px);
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    color: #1a3a5c;
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: bold;
}

h2 {
    color: #1a3a5c;
    font-size: 28px;
    margin-bottom: 15px;
    margin-top: 25px;
}

h3 {
    color: #2c5282;
    font-size: 22px;
    margin-bottom: 12px;
    margin-top: 20px;
}

p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* ============================================
   PROFESSIONAL TABLE DESIGN
   Dark Blue Header, Alternating Rows
   ============================================ */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background-color: #ffffff;
}

/* Dark Blue Header */
table thead tr {
    background-color: #1a3a5c;
    color: #ffffff;
    text-align: left;
    font-weight: bold;
}

table thead th {
    padding: 15px 12px;
    border: 1px solid #142d47;
}

/* Table Body - Alternating Rows */
table tbody tr {
    border-bottom: 1px solid #dddddd;
}

table tbody tr:nth-of-type(even) {
    background-color: #f8f9fa;
}

table tbody tr:nth-of-type(odd) {
    background-color: #ffffff;
}

table tbody tr:hover {
    background-color: #e3f2fd;
    cursor: pointer;
}

table tbody td {
    padding: 12px;
    border: 1px solid #dddddd;
}

table tbody tr:last-of-type {
    border-bottom: 2px solid #1a3a5c;
}

/* ============================================
   BUTTONS & FORMS
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #1a3a5c;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: Arial, sans-serif;
}

.btn:hover {
    background-color: #2c5282;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* ============================================
   CARDS & SECTIONS
   ============================================ */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 25px;
}

.card h2 {
    margin-top: 0;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background-color: #1a3a5c;
    color: #ffffff;
    text-align: center;
    padding: 20px 5%;
    margin-top: 40px;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #ffffff;
    text-decoration: underline;
}

footer a:hover {
    color: #e0e0e0;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    nav ul li ul {
        position: static;
        box-shadow: none;
    }
    
    table {
        font-size: 13px;
    }
    
    table thead {
        display: none;
    }
    
    table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #dddddd;
    }
    
    table tbody td {
        display: block;
        text-align: right;
        padding: 10px;
        border: none;
        border-bottom: 1px solid #eeeeee;
    }
    
    table tbody td:before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        color: #1a3a5c;
    }
}
