/* MAINTENANCE ROZHRANI NETHOST s.r.o. - CSS 2025 */
/* Modern design with #F79049 and white colors */

:root {
    --primary-orange: #F79049;
    --primary-white: #ffffff;
    --secondary-gray: #f8f9fa;
    --dark-gray: #343a40;
    --light-gray: #6c757d;
    --success-green: #28a745;
    --danger-red: #dc3545;
    --warning-yellow: #ffc107;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 16px rgba(0,0,0,0.2);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--secondary-gray);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* ==================== LAYOUT STRUCTURE ==================== */

.layout-container {
    display: flex;
    min-height: 100vh;
}

/* ==================== SIDEBAR NAVIGATION ==================== */

.sidebar {
    width: 250px;
    background: linear-gradient(180deg, var(--primary-orange) 0%, #e6803d 100%);
    box-shadow: var(--shadow-medium);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: var(--transition);
}

.sidebar-header {
    padding: 20px;
    background-color: rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.sidebar-logo {
    max-width: 150px;
    height: auto;
    filter: brightness(0) invert(1); /* Make logo white */
}

.sidebar-title {
    color: var(--primary-white);
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0 0 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    margin: 5px 15px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--primary-white);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.15);
    color: var(--primary-white);
    text-decoration: none;
    transform: translateX(5px);
}

.nav-link.active {
    background-color: rgba(255,255,255,0.25);
    box-shadow: var(--shadow-light);
}

.nav-link i {
    margin-right: 10px;
    width: 20px;
    font-size: 16px;
}

/* ==================== MAIN CONTENT AREA ==================== */

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 0;
    transition: var(--transition);
}

.content-header {
    background-color: var(--primary-white);
    padding: 20px 30px;
    box-shadow: var(--shadow-light);
    border-bottom: 3px solid var(--primary-orange);
}

.content-title {
    color: var(--dark-gray);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.content-subtitle {
    color: var(--light-gray);
    font-size: 14px;
    margin: 5px 0 0 0;
}

.content-body {
    padding: 30px;
}

/* ==================== STATS CORNER ==================== */

.stats-corner {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--primary-white);
    border: 2px solid var(--primary-orange);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--shadow-medium);
    z-index: 999;
    max-width: 300px;
    font-size: 12px;
}

.stats-item {
    margin: 5px 0;
    color: var(--dark-gray);
}

.stats-label {
    font-weight: 600;
    color: var(--primary-orange);
}

.news-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    background-color: var(--primary-orange);
    color: var(--primary-white);
    border-radius: var(--border-radius);
    padding: 10px;
}

.news-section h6 {
    margin: 0 0 10px 0;
    font-weight: 600;
}

.news-section ul {
    margin: 0;
    padding-left: 20px;
}

.news-section a {
    color: var(--primary-white);
    text-decoration: underline;
}

/* ==================== MODERN TABLES ==================== */

.modern-table {
    background-color: var(--primary-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    margin: 20px 0;
}

.modern-table .table {
    margin: 0;
    border: none;
}

.modern-table .table thead th {
    background-color: var(--primary-orange);
    color: var(--primary-white);
    border: none;
    font-weight: 600;
    padding: 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-table .table tbody td {
    padding: 12px 15px;
    border-top: 1px solid #eee;
    vertical-align: middle;
}

.modern-table .table tbody tr:hover {
    background-color: #f8f9fa;
}

.table-actions {
    display: flex;
    gap: 5px;
    align-items: center;
}

/* ==================== MODERN BUTTONS ==================== */

.btn-modern {
    border: none;
    border-radius: var(--border-radius);
    padding: 8px 16px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-modern:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

.btn-primary-modern {
    background-color: var(--primary-orange);
    color: var(--primary-white);
}

.btn-primary-modern:hover {
    background-color: #e6803d;
    color: var(--primary-white);
}

.btn-success-modern {
    background-color: var(--success-green);
    color: var(--primary-white);
}

.btn-danger-modern {
    background-color: var(--danger-red);
    color: var(--primary-white);
}

.btn-warning-modern {
    background-color: var(--warning-yellow);
    color: var(--dark-gray);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ==================== MODERN FORMS ==================== */

.modern-form {
    background-color: var(--primary-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-light);
    margin: 20px 0;
}

.form-group-modern {
    margin-bottom: 20px;
}

.form-label-modern {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-control-modern {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(247, 144, 73, 0.1);
}

.form-select-modern {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    padding-right: 40px;
}

/* ==================== SEARCH AND FILTERS ==================== */

.search-filters {
    background-color: var(--primary-white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-light);
    margin: 20px 0;
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
}

.search-group {
    flex: 1;
    min-width: 200px;
}

/* ==================== NOTIFICATIONS ==================== */

.notification {
    position: fixed;
    top: 20px;
    right: 340px; /* After stats corner */
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    z-index: 1001;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.notification-success {
    background-color: var(--success-green);
    color: var(--primary-white);
}

.notification-error {
    background-color: var(--danger-red);
    color: var(--primary-white);
}

.notification-warning {
    background-color: var(--warning-yellow);
    color: var(--dark-gray);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==================== STATUS BADGES ==================== */

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
}

.status-warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* ==================== LOGIN PAGE ==================== */

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #e6803d 100%);
}

.login-card {
    background-color: var(--primary-white);
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 30px;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 30px;
}

.login-form .form-group-modern {
    text-align: left;
}

.login-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 250px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-corner {
        position: relative;
        top: auto;
        right: auto;
        margin: 20px 0;
        max-width: none;
    }
    
    .notification {
        right: 20px;
        left: 20px;
        width: auto;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .search-group {
        min-width: 100%;
    }
}

/* ==================== UTILITY CLASSES ==================== */

.text-orange { color: var(--primary-orange); }
.bg-orange { background-color: var(--primary-orange); }
.border-orange { border-color: var(--primary-orange); }

.shadow-sm { box-shadow: var(--shadow-light); }
.shadow-md { box-shadow: var(--shadow-medium); }
.shadow-lg { box-shadow: var(--shadow-heavy); }

.rounded { border-radius: var(--border-radius); }

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== TOOLTIPS ==================== */

.tooltipext {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltipext .tooltiptextext {
    visibility: hidden;
    width: 400px;
    background-color: var(--dark-gray);
    color: var(--primary-white);
    text-align: left;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    position: absolute;
    z-index: 1002;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: var(--transition);
    white-space: pre-line;
}

.tooltipext:hover .tooltiptextext {
    visibility: visible;
    opacity: 1;
}

.tooltipext .tooltiptextext pre {
    white-space: pre-line;
    user-select: all;
    background: none;
    border: none;
    color: inherit;
    margin: 0;
    padding: 0;
}

/* ==================== LOADING SPINNER ==================== */

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-orange);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
