/* ==========================================================================
   ELEGANTNÝ DDNS CSS - MINIMALISTICKÝ DIZAJN 2025
   ========================================================================== */

:root {
    /* Jemné farby */
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    
    /* Neutrálne farby */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Layout */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.2s ease-in-out;
}

/* Základné styling */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    font-weight: 400;
}

/* Čistý navbar */
.navbar {
    background-color: white !important;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary) !important;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--gray-600) !important;
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background-color: var(--gray-100);
}

.dropdown-menu {
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: var(--border-radius);
    margin-bottom: 2px;
    color: var(--gray-700);
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--gray-100);
    color: var(--primary);
}

/* Elegantné karty */
.card {
    border: 1px solid var(--gray-300) !important;
    border-radius: var(--border-radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    background: white !important;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--gray-300) !important;
}

.card-header {
    background: white !important;
    border-bottom: 1px solid var(--gray-200) !important;
    font-weight: 600;
    color: var(--gray-800) !important;
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Súhrnný prehľad styling */
.border-end {
    border-color: var(--gray-200) !important;
}

.text-muted {
    color: var(--gray-500) !important;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.fs-4 {
    font-weight: 700;
    color: var(--gray-800);
}

/* DDNS záznamy */
.list-group-item {
    border: 1px solid var(--gray-200) !important;
    border-radius: var(--border-radius-lg) !important;
    margin-bottom: 0.75rem !important;
    padding: 1.25rem !important;
    background: white !important;
    transition: var(--transition);
}

.list-group-item:hover {
    border-color: var(--gray-300) !important;
    box-shadow: var(--shadow) !important;
}

.list-group-item h5 {
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Moderné badges */
.badge {
    font-weight: 500 !important;
    font-size: 0.75rem !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 50px !important;
}

.badge.bg-success {
    background-color: var(--success) !important;
}

.badge.bg-warning {
    background-color: var(--warning) !important;
}

.badge.bg-danger {
    background-color: var(--danger) !important;
}

.badge.bg-info {
    background-color: var(--info) !important;
}

.badge.bg-primary {
    background-color: var(--primary) !important;
}

.badge.bg-secondary {
    background-color: var(--gray-500) !important;
}

/* Čisté tlačidlá */
.btn {
    font-weight: 500 !important;
    border-radius: var(--border-radius) !important;
    transition: var(--transition);
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-success {
    background-color: var(--success) !important;
    border-color: var(--success) !important;
}

.btn-success:hover {
    background-color: #059669 !important;
    border-color: #059669 !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-info {
    background-color: var(--info) !important;
    border-color: var(--info) !important;
}

.btn-info:hover {
    background-color: #0891b2 !important;
    border-color: #0891b2 !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--gray-300) !important;
    background: white !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline-secondary {
    color: var(--gray-600) !important;
    border-color: var(--gray-300) !important;
    background: white !important;
}

.btn-outline-secondary:hover {
    background-color: var(--gray-100) !important;
    border-color: var(--gray-400) !important;
    color: var(--gray-700) !important;
}

.btn-outline-dark {
    color: var(--gray-700) !important;
    border-color: var(--gray-300) !important;
    background: white !important;
}

.btn-outline-dark:hover {
    background-color: var(--gray-800) !important;
    border-color: var(--gray-800) !important;
    color: white !important;
}

.btn-outline-info {
    color: var(--info) !important;
    border-color: var(--gray-300) !important;
    background: white !important;
}

.btn-outline-info:hover {
    background-color: var(--info) !important;
    border-color: var(--info) !important;
    color: white !important;
}

/* Aktivita feed */
.list-group-flush .list-group-item {
    padding: 0.75rem 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--gray-200) !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    background: transparent !important;
}

.list-group-flush .list-group-item:last-child {
    border-bottom: none !important;
}

/* Alert styling */
.alert {
    border-radius: var(--border-radius-lg) !important;
    border: 1px solid var(--gray-200) !important;
    font-weight: 500;
}

.alert-info {
    background-color: #f0f9ff !important;
    border-color: #bae6fd !important;
    color: #0c4a6e !important;
}

.alert-light {
    background-color: var(--gray-100) !important;
    border-color: var(--gray-200) !important;
    color: var(--gray-700) !important;
}

/* Footer */
.footer {
    background-color: var(--gray-800) !important;
    color: var(--gray-300);
    margin-top: 4rem;
}

.footer h5 {
    color: white;
    font-weight: 600;
}

.footer-link {
    color: var(--gray-400) !important;
    text-decoration: none !important;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--gray-200) !important;
}

/* Form elementy */
.form-control {
    border: 1px solid var(--gray-300) !important;
    border-radius: var(--border-radius) !important;
    padding: 0.625rem 0.875rem;
    font-weight: 400;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1) !important;
}

/* Progress bars */
.progress {
    background-color: var(--gray-200) !important;
    border-radius: 50px !important;
    height: 0.5rem !important;
}

.progress-bar {
    background-color: var(--primary) !important;
    border-radius: 50px !important;
}

/* Toast notifikácie */
.toast {
    border-radius: var(--border-radius-lg) !important;
    border: 1px solid var(--gray-200) !important;
    box-shadow: var(--shadow-lg) !important;
}

/* Tabuľky */
.table {
    font-size: 0.875rem;
}

.table th {
    border-color: var(--gray-200) !important;
    background-color: var(--gray-50) !important;
    font-weight: 600;
    color: var(--gray-700);
}

.table td {
    border-color: var(--gray-200) !important;
}

/* Text utilities */
.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-info {
    color: var(--info) !important;
}

.text-primary {
    color: var(--primary) !important;
}

/* Responzívne úpravy */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .list-group-item {
        padding: 1rem !important;
    }
    
    .btn-sm {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }
    
    .border-end {
        border-right: none !important;
        border-bottom: 1px solid var(--gray-200) !important;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
}

/* Jemné hover efekty len kde má zmysel */
.nav-link,
.btn,
.card,
.list-group-item,
.dropdown-item {
    cursor: pointer;
}

/* Fokus stavy pre accessibility */
.btn:focus,
.nav-link:focus,
.form-control:focus {
    outline: none;
}

/* Status farby */
.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-danger {
    color: var(--danger) !important;
}

/* Jemné tieňovanie pre hlavný obsah */
.main-content {
    background: white;
    border-radius: var(--border-radius-lg);
    margin-top: -2rem;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow);
    padding: 2rem 0;
}

/* Čistý background pre container */
body {
    background: linear-gradient(135deg, var(--gray-50) 0%, #e0e7ff 100%);
    min-height: 100vh;
}


/* ==========================================================================
   ELEGANTNÁ HERO SEKCIA - DODATKY K EXISTUJÚCIM ŠTÝLOM
   ========================================================================== */

/* Hero sekcia styling */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #1e40af 100%);
    color: white;
    padding: 6rem 0 8rem 0;
    position: relative;
    overflow: hidden;
    margin-top: -2rem; /* Kompenzuje main-content margin */
    margin-bottom: 4rem;
}

/* Jemný overlay pattern */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    background-size: 400px 400px;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}
