/* ===== GLOBALE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #333;
}

/* ===== LOGIN SCREEN ===== */
.screen {
    min-height: 100vh;
}

#loginScreen {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card h1 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-size: 28px;
}

.form-group {
    margin-bottom: 20px;
}

input[type="password"],
input[type="text"],
select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input[type="password"]:focus,
input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.error-message {
    color: #d32f2f;
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.error-message.show {
    display: block;
}

/* ===== DASHBOARD ===== */
.navbar {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.navbar-left h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.navbar-left p {
    color: #666;
    font-size: 14px;
}

.btn-logout {
    padding: 10px 20px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: #d32f2f;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 50px;
}

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filters input,
.filters select {
    flex: 1;
    min-width: 250px;
}

.feedback-list {
    display: grid;
    gap: 20px;
}

.feedback-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s, transform 0.3s;
}

.feedback-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.feedback-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feedback-title h3 {
    font-size: 18px;
    color: #333;
}

.feedback-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-new {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-viewed {
    background: #f3e5f5;
    color: #7b1fa2;
}

.badge-resolved {
    background: #e8f5e9;
    color: #388e3c;
}

.badge-archived {
    background: #f5f5f5;
    color: #757575;
}

.feedback-date {
    color: #999;
    font-size: 12px;
}

.feedback-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-left: 4px solid #667eea;
    border-radius: 4px;
}

.feedback-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-action.status {
    background: #667eea;
    color: white;
}

.btn-action.status:hover {
    background: #764ba2;
}

.btn-action.delete {
    background: #f44336;
    color: white;
}

.btn-action.delete:hover {
    background: #d32f2f;
}

.status-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    min-width: 150px;
    top: 100%;
    left: 0;
    margin-top: 5px;
}

.dropdown-menu button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.dropdown-menu button:hover {
    background: #f5f5f5;
}

.dropdown-menu button:first-child {
    border-radius: 6px 6px 0 0;
}

.dropdown-menu button:last-child {
    border-radius: 0 0 6px 6px;
}

.loading {
    text-align: center;
    color: #999;
    padding: 40px;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .filters {
        flex-direction: column;
    }

    .filters input,
    .filters select {
        min-width: auto;
    }

    .feedback-header {
        flex-direction: column;
        gap: 10px;
    }

    .feedback-actions {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
    }
}
