/* Style dla systemu logowania i rejestracji */

/* Zmienne CSS */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 0.375rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.15s ease-in-out;
}

/* Reset i podstawowe style */
* {
    box-sizing: border-box;
}

/* Wyłącz przesunięcie dropdown-item po hover */
.dropdown-item:hover {
    transform: none !important;
    margin-left: 0 !important;
    padding-left: 1rem !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f8f9fa;
}

/* Nawigacja */
.navbar {
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Główna zawartość */
.main-content {
    min-height: calc(100vh - 200px);
    padding-bottom: 2rem;
}

/* Karty */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--box-shadow);
    transform: none;
}

.card-header {
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    font-weight: 600;
}

/* Przyciski */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* Formularze */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
}

/* Alerty */
.alert {
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-info {
    background-color: #d1ecf1;
    color: #055160;
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-content {
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-left: 1rem;
}

.timeline-title {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.timeline-text {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* Strona błędu 404 */
.error-page {
    padding: 3rem 0;
}

.error-code h1 {
    font-size: 8rem;
    line-height: 1;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-message h2 {
    color: var(--primary-color);
}

/* Stopka */
footer {
    margin-top: auto;
}

footer h5 {
    color: var(--light-color);
    font-weight: 600;
}

footer p {
    color: #adb5bd;
}

/* Responsywność */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .error-code h1 {
        font-size: 5rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline::before {
        left: 0.5rem;
    }
    
    .timeline-marker {
        left: -1.5rem;
    }
    
    .timeline-content {
        margin-left: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .error-code h1 {
        font-size: 4rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Animacje - wyłączone */

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* Focus styles */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

/* Zmniejszone menu - small-text-size */
.navbar-nav.small-text-size .nav-link {
    font-size: 0.82rem;
    padding: 0.15rem 0.35rem !important;
    margin: 0 0.15rem;
}

.navbar-nav.small-text-size .dropdown-menu {
    font-size: 0.85rem;
    padding: 0.2rem 0.2rem;
}

.navbar-nav.small-text-size .dropdown-item {
    padding: 0.25rem 0.45rem;
}

.navbar-nav.small-text-size .dropdown-item small {
    font-size: 0.7rem;
}

/* Zmniejsz przyciski w małym menu */
.navbar-nav.small-text-size .btn {
    font-size: 0.82rem;
    padding: 0.2rem 0.4rem;
    line-height: 1.2;
    margin: 0 0.15rem;
}

/* Animacja sukcesu kopiowania (globalna) */
.copied-animation {
    animation: copiedPulse 0.6s ease-in-out;
}

@keyframes copiedPulse {
    0% { transform: scale(1); background-color: transparent; }
    50% { transform: scale(1.05); background-color: #28a745; }
    100% { transform: scale(1); background-color: transparent; }
}

.copy-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}
