@import url('open.iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body, #app {
    height: 100%;
    overflow: hidden;
}

#app {
    background-color: #f5f7fa;
}

/* Form validáció stílusok */
.valid.modified:not([type=checkbox]) {
    outline: 2px solid #26b050;
    outline-offset: 2px;
}

.invalid {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

.validation-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Kártyák és panelek */
::deep .card, ::deep .dxbl-panel {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

::deep .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Gombok */
::deep .btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

::deep .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

::deep .btn:active {
    transform: translateY(0);
}

::deep .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

::deep .btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #65408b 100%);
}

/* Input mez?k */
::deep input[type="text"],
::deep input[type="password"],
::deep input[type="email"],
::deep textarea,
::deep select {
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: all 0.2s ease;
}

::deep input:focus,
::deep textarea:focus,
::deep select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Táblázatok */
::deep table {
    border-radius: 8px;
    overflow: hidden;
}

::deep .table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    border: none;
}

/* Loading animáció */
::deep .loading-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Tooltip-ek */
::deep .tooltip {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Modal dialógusok */
::deep .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

::deep .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

/* Fade-in animáció */
.fade-in {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alert üzenetek */
::deep .alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

::deep .alert-success {
    background-color: #d4edda;
    color: #155724;
}

::deep .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

::deep .alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

::deep .alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Blazor hiba UI */
#blazor-error-ui {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    bottom: 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 1rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
    color: white;
    border-top: 3px solid #cc0000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: white;
    transition: opacity 0.2s;
}

#blazor-error-ui .dismiss:hover {
    opacity: 0.8;
}

/* Reszponzív média lekérdezések */
@media (max-width: 768px) {
    ::deep .card {
        margin-bottom: 1rem;
    }
    
    ::deep .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* DevExpress komponensek testreszabása */
::deep .dxbs-grid {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

::deep .dxbs-grid-header-row {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Focus láthatóság javítása */
*:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    border-radius: 4px;
}