/* Simple custom styles for ScanTacts */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card {
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.btn {
    border-radius: 5px;
}

.alert {
    border-radius: 10px;
}

/* QR Code styles */
.qr-code {
    padding: 10px;
    background: white;
    border: 1px solid #ddd;
    display: inline-block;
}

/* Form styles */
.form-control:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Dashboard card hover effect */
.dashboard-card {
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Footer Styles - Blue Theme */
footer {
    margin-top: auto; /* Push footer to bottom */
}

.bg-primary {
    background-color: #0066cc !important;
}

footer a:hover {
    opacity: 0.8;
    text-decoration: underline !important;
}

/* Cookie Banner */
#cookieBanner {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Make buttons match theme */
.btn-primary {
    background-color: #0066cc;
    border-color: #0066cc;
}

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
}

.btn-outline-primary {
    color: #0066cc;
    border-color: #0066cc;
}

.btn-outline-primary:hover {
    background-color: #0066cc;
    border-color: #0066cc;
}

/* Add to your style.css for smooth animations */
@keyframes slideUp {
    from { 
        transform: translateY(100%);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from { 
        transform: translateY(0);
        opacity: 1;
    }
    to { 
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Ensure no margin on body bottom */
body {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Fix white space issue at bottom of page */
html {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    /* Ensure no bottom padding */
    padding-bottom: 0 !important;
}

/* Make content take up available space */
.content, main {
    flex: 1 0 auto;
}

/* Footer should stick to bottom */
footer {
    flex-shrink: 0;
    margin-bottom: 0 !important;
}

/* Remove any margins from last elements */
body > *:last-child {
    margin-bottom: 0 !important;
}

/* Specific fix for Bootstrap containers */
.container:last-child,
.container-fluid:last-child {
    padding-bottom: 0 !important;
}