/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out;
}

/* Transitions */
.transition-colors {
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.transition-transform {
    transition: transform 0.3s;
}

/* Military theme colors and styles */
.military-gradient {
    background: linear-gradient(135deg, #1a3a3a 0%, #2c5364 100%);
}

.military-bg-dark {
    background-color: #1a3a3a;
}

.military-bg-light {
    background-color: #e5e7eb;
}

.military-text {
    color: #2c5364;
}

/* Custom button styles */
.btn-military {
    background-color: #2c5364;
    color: white;
    transition: all 0.3s ease;
}

.btn-military:hover {
    background-color: #1a3a3a;
}

/* Custom card styles */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Custom form styles */
.editor {
    min-height: 300px;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
}

.form-input:focus {
    border-color: #2c5364;
    box-shadow: 0 0 0 3px rgba(44, 83, 100, 0.2);
}

/* Badge styles */
.badge-army {
    background-color: #4b5320;
    color: white;
}

.badge-navy {
    background-color: #000080;
    color: white;
}

.badge-air-force {
    background-color: #0033a0;
    color: white;
}

.badge-marines {
    background-color: #8b0000;
    color: white;
}

.badge-coast-guard {
    background-color: #003478;
    color: white;
}

.badge-space-force {
    background-color: #1d2951;
    color: white;
}

/* Custom blockquote style */
blockquote {
    border-left: 4px solid #2c5364;
    padding-left: 1rem;
    font-style: italic;
    color: #4a5568;
    margin: 1.5rem 0;
}

/* Custom table styles */
.military-table {
    width: 100%;
    border-collapse: collapse;
}

.military-table th {
    background-color: #2c5364;
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem;
}

.military-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.military-table tr:hover {
    background-color: #f7fafc;
}

/* Custom image styles */
.img-military {
    border: 2px solid #2c5364;
    border-radius: 0.375rem;
}

/* Responsive typography */
@media (max-width: 640px) {
    h1 {
        font-size: 1.875rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.25rem;
    }
    .mobile-hidden {
        display: none;
    }
}

/* Print styles */
@media print {
    header, footer, .no-print {
        display: none;
    }
    body {
        font-size: 12pt;
        color: #000;
        background-color: #fff;
    }
    a {
        text-decoration: none;
        color: #000;
    }
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
}

/* Accessibility focus styles */
:focus {
    outline: 3px solid rgba(44, 83, 100, 0.5);
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dark-mode-support {
        background-color: #1a202c;
        color: #e2e8f0;
    }
}