* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
    background: white;
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1),
                0 2px 8px rgba(0, 0, 0, 0.06);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.header-title h1 {
    font-size: 28px;
    color: #1a202c;
    margin-bottom: 5px;
    font-weight: 700;
}

.header-title p {
    color: #718096;
    font-size: 14px;
}

.header-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(0);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-purple {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #1a202c;
}

.btn-outline {
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-outline:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

/* Card */
.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1),
                0 2px 8px rgba(0, 0, 0, 0.06);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f7fafc;
}

.card-title {
    font-size: 24px;
    color: #1a202c;
    font-weight: 700;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f7fafc;
    color: #1a202c;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

/* Task Item */
.task-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.task-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e0;
}

.task-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.task-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
}

.status-badge {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-novi {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.status-u_toku {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.status-zavrseno {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.status-odlozeno {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #1a202c;
}

.note-indicator {
    color: #f56565;
    font-size: 24px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.task-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #4a5568;
}

.task-description {
    color: #718096;
    margin-top: 12px;
    line-height: 1.7;
    padding: 16px;
    background: #f7fafc;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.task-note {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 2px solid #fc8181;
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
}

.task-note-label {
    color: #c53030;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-note-text {
    color: #742a2a;
    line-height: 1.6;
}

/* Table */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.table th:first-child {
    border-top-left-radius: 12px;
}

.table th:last-child {
    border-top-right-radius: 12px;
}

.table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #2d3748;
}

.table tr:hover {
    background: #f7fafc;
}

.table tr:last-child td {
    border-bottom: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 35px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    margin-bottom: 25px;
}

.modal-title {
    font-size: 26px;
    color: #1a202c;
    font-weight: 700;
}

.modal-close {
    float: right;
    font-size: 32px;
    cursor: pointer;
    color: #a0aec0;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #1a202c;
    transform: rotate(90deg);
}

/* Login Page */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 24px;
    padding: 50px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.login-logo {
    height: 100px;
    margin-bottom: 25px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.login-title {
    font-size: 32px;
    color: #1a202c;
    margin-bottom: 12px;
    font-weight: 700;
}

.login-subtitle {
    color: #718096;
    margin-bottom: 35px;
    font-size: 16px;
}

/* Airport Display */
.airport-display {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.airport-header {
    display: grid;
    grid-template-columns: 60px 1fr 120px 180px 150px 60px;
    gap: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.airport-row {
    display: grid;
    grid-template-columns: 60px 1fr 120px 180px 150px 60px;
    gap: 15px;
    padding: 24px 20px;
    border-bottom: 2px solid #f7fafc;
    align-items: center;
    transition: all 0.3s ease;
}

.airport-row:hover {
    background: #f7fafc;
    transform: translateX(8px);
}

.airport-row:last-child {
    border-bottom: none;
}

.airport-number {
    font-size: 28px;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    text-align: center;
    color: #1a202c;
}

.airport-worker {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
}

.airport-priority {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
}

.priority-standardno {
    color: #4299e1;
}

.priority-hitno {
    color: #ed8936;
}

.priority-odmah {
    color: #f56565;
}

.airport-time {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #4a5568;
    font-weight: 600;
}

.airport-status {
    text-align: center;
}

.airport-note {
    font-size: 28px;
    text-align: center;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    body {
        padding: 10px 0;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    
    .header-right {
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .task-info {
        grid-template-columns: 1fr;
    }
    
    .airport-header,
    .airport-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .airport-header {
        display: none;
    }
    
    .airport-row {
        padding: 20px 15px;
    }
    
    .airport-row > div::before {
        content: attr(data-label);
        font-weight: 700;
        margin-right: 10px;
        color: #718096;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .table {
        font-size: 14px;
    }
    
    .table th,
    .table td {
        padding: 12px;
    }
    
    .login-card {
        padding: 35px 25px;
    }
    
    .card {
        padding: 20px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
    font-size: 16px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}
