/* Estilos específicos para o Admin */

.admin-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Tela de Login */
.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo h1 {
    color: #4a6cf7;
    margin-bottom: 5px;
}

.login-logo p {
    color: #666;
    font-size: 14px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.login-form .form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.login-form .form-input:focus {
    border-color: #4a6cf7;
    outline: none;
}

.btn-block {
    width: 100%;
    padding: 12px;
}

.login-links {
    margin-top: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
}

.login-links a {
    color: #4a6cf7;
    text-decoration: none;
    font-size: 14px;
}

.login-links a:hover {
    text-decoration: underline;
}

/* Dashboard Admin */
.admin-dashboard {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-header {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-header-left .admin-logo h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 5px;
}

#current-location {
    color: #666;
    font-size: 14px;
}

.admin-stats {
    display: flex;
    gap: 10px;
    margin-right: 20px;
}

.stat-badge {
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
}

.admin-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.admin-sidebar {
    width: 250px;
    background: white;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.sidebar-menu {
    flex: 1;
}

.menu-item {
    width: 100%;
    padding: 15px 25px;
    border: none;
    background: none;
    text-align: left;
    font-size: 16px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.menu-item:hover {
    background: #f8f9fa;
    color: #4a6cf7;
}

.menu-item.active {
    background: #f0f4ff;
    color: #4a6cf7;
    border-left-color: #4a6cf7;
}

.sidebar-info {
    padding: 20px;
}

.info-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
}

.info-card h4 {
    margin-bottom: 10px;
    color: #333;
}

.quick-link {
    display: block;
    padding: 8px;
    background: white;
    border-radius: 6px;
    margin-bottom: 5px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: all 0.3s;
}

.quick-link:hover {
    background: #4a6cf7;
    color: white;
}

.admin-content {
    flex: 1;
    padding: 30px;
    background: #f8f9fa;
    overflow-y: auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Cards de Estatísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    font-size: 40px;
    margin-right: 15px;
}

.stat-info .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.stat-info .stat-label {
    color: #666;
    font-size: 14px;
}

/* Listas Ativas */
.dashboard-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.section-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.section-card h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.active-list {
    max-height: 300px;
    overflow-y: auto;
}

.active-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.active-item:last-child {
    border-bottom: none;
}

.item-prefix {
    background: #4a6cf7;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 10px;
}

.item-name {
    flex: 1;
    color: #333;
}

.item-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.item-status.active {
    background: #d4edda;
    color: #155724;
}

.item-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Tabela de Senhas */
.tickets-table-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.tickets-table {
    width: 100%;
    border-collapse: collapse;
}

.tickets-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.tickets-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.tickets-table tr:hover {
    background: #f8f9fa;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-primary {
    background: #4a6cf7;
    color: white;
}

.btn-primary:hover {
    background: #3a5ce5;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ddd;
    color: #555;
}

.btn-outline:hover {
    background: #f8f9fa;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

/* Formulários */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: #4a6cf7;
    outline: none;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-hint {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-controls {
    display: flex;
    gap: 10px;
}

.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Responsividade */
@media (max-width: 768px) {
    .admin-main {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
    }
    
    .menu-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 4px solid transparent;
    }
    
    .menu-item.active {
        border-left: none;
        border-bottom-color: #4a6cf7;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
    
    .tab-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .admin-stats {
        margin-right: 0;
    }
}