/* SkyguidePro Global Styles */

/* Complete Reset */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
}

header {
    margin: 0 !important;
    padding: 0 !important;
}

/* Global Variables */
:root {
    --primary-blue: #1e3a8a;
    --primary-blue-light: #3b82f6;
    --primary-blue-hover: #60a5fa;
    
    /* Alternative naming for consistency */
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --accent: #0ea5e9;
    --success: #10b981;
    --warning: #f59e0b;

    /* Pico CSS Override - No underlines */
    --pico-text-decoration: none;
}

a {
    --pico-text-decoration: none;
}

a.secondary, a.contrast {
    --pico-text-decoration: none;
}

/* Body Layout */
body {
    background-color: #f9fafb;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}



/* Header Navigation */
.navbar {
    background-color: var(--primary-blue);
    color: white;
    min-height: 150px;
    padding: 3rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 0 !important;
    margin-top: 0 !important;
    position: relative;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
}

.navbar .container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar .logo {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.navbar .logo:hover {
    color: white;
}

.navbar .nav-links {
    display: flex;
    gap: 1.5rem;
}

.navbar .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
    color: #93c5fd;
}

.navbar .nav-links a.active {
    color: #93c5fd;
}

/* Main Content */
main {
    flex: 1;
    padding: 2rem 0;
}

/* Footer */
.footer {
    background-color: var(--primary-blue);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: auto;
}

.footer p {
    margin: 0;
    color: white;
}

/* Messages */
.messages {
    padding: 1rem;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    margin: 1rem auto;
    max-width: 80rem;
}

.messages div {
    color: #92400e;
}

/* Override Pico CSS defaults */
body > header:first-child {
    margin-top: 0 !important;
}

header, nav {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* RT Trainer Container Styling */
.rt-container {
    max-width: 1800px;
    margin: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.rt-header {
    /*background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));*/
    background: #1E3A8A;
    
    color: white;
    /*padding: 15px;*/
    text-align: center;
}

.rt-header h1 {
    margin: 0;
    color: white;
    font-size: 1.8rem;
}

.rt-header p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
    color: white;
}

.rt-content {
    background: white;
}

.rt-messages {
    padding: 10px 20px;
}

.rt-message {
    padding: 10px;
    margin: 5px 0;
    border-radius: 4px;
}

.rt-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rt-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.rt-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* RT Trainer Exercise Table Styles */
.exercise-list {
    padding: 2rem 0;
}

.exercise-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.exercise-table th {
    background: var(--primary-blue);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: bold;
}

.exercise-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

/* Zebra striping for better readability */
.exercise-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.exercise-table tbody tr:nth-child(odd) {
    background-color: white;
}

/* Subtle hover effect */
.exercise-table tbody tr:hover {
    background-color: #e3f2fd !important;
}

/* Exercise table links - override Pico CSS */
.exercise-table td a,
.exercise-table td a:link,
.exercise-table td a:visited {
    color: var(--primary-blue) !important;
    text-decoration: none !important;
    border-bottom: none !important;
    font-weight: 500 !important;
}

.exercise-table td a:hover {
    color: var(--primary-blue-light) !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .rt-container {
        margin: 1rem;
    }
    
    .exercise-table {
        font-size: 0.9rem;
    }
    
    .exercise-table th,
    .exercise-table td {
        padding: 8px;
    }
}