/* Basic reset and body styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* Navigation */
.navbar {
    background: #00529b;
    color: white;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.nav-brand a {
    display: block;
    line-height: 0;
}

.nav-logo {
    height: 60px;
    padding: 10px 0;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 1.5rem 0;
    transition: opacity 0.2s;
    font-weight: bold;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* Hamburger button - hidden on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

/* Hamburger animation when open */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #00529b;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: #003d73;
}

.btn-primary {
    background: #00529b;
}

.btn-success {
    background: #28a745;
}

.btn-danger {
    background: #dc3545;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 100px;
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.dashboard-card h2 {
    margin-bottom: 1rem;
    color: #00529b;
}

/* Alerts */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

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

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

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Post description styling */
.post-description {
    white-space: pre-wrap;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-indent: 0 !important;
}

.post-description > *:first-child {
    margin-top: 0 !important;
    text-indent: 0 !important;
}

.post-description p:first-of-type {
    text-indent: 0 !important;
}

/* =========================================================================
   MOBILE RESPONSIVE
   ========================================================================= */

@media (max-width: 768px) {

    /* Show hamburger */
    .nav-toggle {
        display: block;
    }

    /* Navbar layout */
    .navbar {
        padding: 0 1rem;
        flex-wrap: wrap;
    }

    /* Mobile menu - hidden by default */
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding-bottom: 0.5rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 0.75rem 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    /* Container padding */
    .container {
        padding: 1rem;
    }

    /* Dashboard heading */
    .container h1 {
        font-size: 1.5rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }
}