:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #3f37c9;
    --danger: #f72585;
    --success: #4cc9f0;
    --warning: #f8961e;
    --dark: #1a1a2e;
    --darker: #16213e;
    --light: #f8f9fa;
    --gray: #6c757d;
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: var(--light);
    background-color: var(--darker);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 0;
    line-height: 1.6;
}

.fundo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../api/2023');
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.1;
    filter: blur(2px);
}

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

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    width: 90%;
    max-width: 800px;
    background: rgba(26, 26, 46, 0.9);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: fadeIn 0.6s ease-out;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.top-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary), var(--success), var(--primary));
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.logo {
    max-width: 180px;
    margin: 0 auto 1.5rem;
    pointer-events: none;
    user-select: none;
    display: block;
    filter: drop-shadow(0 0 10px rgba(67, 97, 238, 0.5));
}

h2, h3 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

h2 {
    font-size: 1.8rem;
    color: var(--success);
}

h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    position: relative;
    display: inline-block;
}

h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 3px;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--light);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 1.5rem;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-danger {
    background-color: var(--danger);
}

.btn-danger:hover {
    background-color: #e5177e;
}

.btn-success {
    background-color: var(--success);
}

.btn-success:hover {
    background-color: #3ab5d8;
}

.btn-warning {
    background-color: var(--warning);
}

.btn-warning:hover {
    background-color: #e68a1a;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--light);
}

th {
    background: rgba(67, 97, 238, 0.2);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem;
    min-width: 36px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.edit-btn {
    background: rgba(76, 201, 240, 0.2);
    color: var(--success);
}

.edit-btn:hover {
    background: rgba(76, 201, 240, 0.3);
}

.delete-btn {
    background: rgba(247, 37, 133, 0.2);
    color: var(--danger);
}

.delete-btn:hover {
    background: rgba(247, 37, 133, 0.3);
}

.mac-display {
    background: rgba(67, 97, 238, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-weight: 500;
    border: 1px solid rgba(67, 97, 238, 0.3);
    box-shadow: 0 0 15px rgba(67, 97, 238, 0.1);
}

.text-muted {
    color: var(--gray);
    font-size: 0.85rem;
}

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

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.alert-success {
    background-color: rgba(76, 201, 240, 0.2);
    border-left: 4px solid var(--success);
    color: var(--light);
}

.alert-danger {
    background-color: rgba(247, 37, 133, 0.2);
    border-left: 4px solid var(--danger);
    color: var(--light);
}

/* Animações extras */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(67, 97, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0); }
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 8px);
}

@media (max-width: 768px) {
    .container {
        padding: 2rem 1.5rem;
        width: 95%;
    }
    
    .button-group {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn {
        width: 100%;
    }
    
    table {
        min-width: 600px;
    }
}