:root {
    --primary-color: #3498db;
    --primary-hover: #2980b9;
    --secondary-color: #e74c3c;
    --secondary-hover: #c0392b;
    --success-color: #2ecc71;
    --warning-color: #f1c40f;
    --dark-color: #34495e;
    --light-color: #ecf0f1;
    --text-color: #2c3e50;
    --border-radius: 4px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f8fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #e1e4e8;
    position: relative;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

header p {
    color: #7f8c8d;
    font-size: 16px;
}

.user-info {
    position: absolute;
    top: 20px;
    right: 0;
    font-size: 14px;
    color: #7f8c8d;
}

.logout-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
}

.logout-link:hover {
    text-decoration: underline;
}

#alerts {
    margin-bottom: 20px;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header {
    background-color: #2c3e50;
    color: #fff;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-title {
    font-size: 18px;
    font-weight: 500;
}

.card-header-info {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
}

.card-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
    width: 48%;
    display: inline-block;
    vertical-align: top;
}

.full-width {
    width: 100%;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="url"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    background-color: #f9f9f9;
    transition: border-color 0.3s;
}

/* Remove os controles +/- do input number */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-item {
    display: flex;
    align-items: center;
}

.radio-item input[type="radio"] {
    margin-right: 5px;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s, transform 0.1s;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-success {
    background-color: #2ecc71;
}

.btn-success:hover {
    background-color: #27ae60;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Estilos para os botões de ação na tabela */
.table .btn {
    padding: 5px 10px;
    font-size: 13px;
    margin: 0 2px;
}

.table .btn-danger {
    padding: 5px 10px;
    font-size: 13px;
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

.badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.badge-success {
    background-color: #2ecc71;
    color: white;
}

.badge-danger {
    background-color: #e74c3c;
    color: white;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: white;
}

/* Remove sublinhado dos links nas badges */
a .badge, 
a .badge:hover, 
a .badge:focus, 
a .badge:active,
a:hover .badge, 
a:focus .badge, 
a:active .badge {
    text-decoration: none !important;
    color: white;
}

/* Regra específica para remover sublinhado de links que contenham badges */
a[href*="rds.php"] {
    text-decoration: none !important;
}

a[href*="rds.php"]:hover {
    text-decoration: none !important;
}

/* Coluna RDS mais compacta */
.table th:nth-child(7),
.table td:nth-child(7) {
    width: 50px;
    text-align: center;
    padding: 8px;
}

/* Ícones RDS específicos */
.table .badge {
    font-size: 16px;
    font-weight: bold;
    padding: 4px 8px;
    min-width: 28px;
    text-align: center;
    border-radius: 50%;
}

/* Cores das datas de vencimento */
.expiry-normal {
    background-color: #d4edda;
    color: #155724;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
}

.expiry-warning {
    background-color: #fff3cd;
    color: #856404;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
}

.expiry-critical {
    background-color: #f8d7da;
    color: #721c24;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 4px;
}

.expiry-overdue {
    background-color: #dc3545;
    color: white;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Estilos para o logo */
.radio-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #fff;
    padding: 2px;
    transition: transform 0.2s ease;
}

.radio-logo:hover {
    transform: scale(1.1);
}

.no-logo {
    display: inline-block;
    width: 70px;
    height: 70px;
    background-color: #f0f0f0;
    border-radius: 4px;
    text-align: center;
    line-height: 70px;
    font-size: 12px;
    color: #666;
    border: 1px solid #ddd;
}

.logo-preview {
    margin-top: 10px;
    max-width: 200px;
}

.logo-preview-img {
    max-width: 100%;
    max-height: 150px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

.current-logo {
    margin-bottom: 15px;
}

.logo-thumbnail {
    max-width: 150px;
    max-height: 120px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

.help-text {
    color: #7f8c8d;
    font-size: 13px;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .form-group {
        width: 100%;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .user-info {
        position: static;
        margin-top: 15px;
        text-align: center;
    }
    
    .radio-logo {
        max-width: 60px;
        max-height: 45px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .card-header-info {
        align-self: flex-end;
    }
}

input:invalid {
    border-color: #ddd;
}

#passwordStrength {
    height: 5px;
    display: block;
    margin-top: 5px;
} 