/* Base styles for ip2time */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    padding: 1.5rem 0;
    margin-top: auto;
}

footer a {
    color: #6c757d;
    text-decoration: none;
}

footer a:hover {
    color: #343a40;
}

/* Dark footer for index page (ip2time-page context) */
body:has(.ip2time-page) footer {
    background-color: #0a0a1a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body:has(.ip2time-page) footer .text-muted,
body:has(.ip2time-page) footer a {
    color: rgba(255, 255, 255, 0.65) !important;
}

body:has(.ip2time-page) footer a:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Remove container padding on index to let hero go edge-to-edge */
body:has(.ip2time-page) main.container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}
