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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}

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

header {
    background: #003366;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

header .header-logo {
    height: 60px;
    width: auto;
    padding: 8px 12px;
    border-radius: 8px;
    background: #003366;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    object-fit: contain;
}

header h1 {
    font-size: 24px;
    margin: 0;
    word-wrap: break-word;
    white-space: normal;
    flex: 1;
    min-width: 150px;
}

header .subtitle {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
    width: 100%;
}

.controls {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-group {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #666;
    margin-bottom: 4px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 150px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestions .suggestion-item {
    padding: 8px 10px;
    cursor: pointer;
}

.suggestions .suggestion-item:hover {
    background: #f0f0f0;
}

.export-group {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    display: inline-block;
}

.btn-pdf { background: #dc3545; }
.btn-pdf:hover { background: #c82333; }
.btn-csv { background: #28a745; }
.btn-csv:hover { background: #218838; }
.btn-ical { background: #007bff; }
.btn-ical:hover { background: #0056b3; }

.rota-container {
    background: white;
    border-radius: 8px;
    overflow: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rota-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.rota-grid thead {
    background: #003366;
    color: white;
}

.rota-grid th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.rota-grid td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.rota-grid tr:hover {
    background: #f9f9f9;
}

.no-data {
    text-align: center;
    color: #999;
    padding: 40px !important;
}

footer {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

footer a {
    color: #003366;
    text-decoration: none;
}

@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .export-group {
        margin-left: 0;
        justify-content: center;
    }
    
    .rota-grid {
        font-size: 12px;
    }
    
    .rota-grid th,
    .rota-grid td {
        padding: 8px 10px;
    }
}