/* =============================================================================
   Vlastní styly pro aplikaci Správa předplatných
   ============================================================================= */

/* Základní nastavení */
:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex: 1;
}

/* Navigace */
.navbar-brand {
    font-weight: 600;
}

/* Karty */
.card {
    border: none;
    border-radius: 0.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,.1);
    font-weight: 500;
}

/* Tabulky */
.table th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Badge pro dny */
.badge {
    font-weight: 500;
}

/* Statistické karty na dashboardu */
.col-xl-3 .card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.col-xl-3 .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Formuláře */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-label {
    font-weight: 500;
    color: #495057;
}

/* Tlačítka */
.btn {
    font-weight: 500;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Minimální výška pro centrovací */
.min-vh-50 {
    min-height: 50vh;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Dropdown menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
}

.dropdown-item:active {
    background-color: var(--primary-color);
}

/* Seznam zařízení */
.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

/* Code styling */
code {
    background-color: #f8f9fa;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

/* Footer */
.footer {
    border-top: 1px solid #dee2e6;
}

/* Responzivní úpravy */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .card-header h5 {
        font-size: 1rem;
    }
}

/* Animace pro flash zprávy */
.alert {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Řádky končících předplatných */
.table-warning {
    --bs-table-bg: rgba(255, 193, 7, 0.1);
}

.table-danger {
    --bs-table-bg: rgba(220, 53, 69, 0.1);
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Tooltip přizpůsobení */
.tooltip {
    font-size: 0.8125rem;
}

/* Print styly */
@media print {
    .navbar,
    .footer,
    .btn,
    .breadcrumb {
        display: none !important;
    }
    
    .card {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
    }
}
