/* ========================================
   ESTILOS GLOBAIS ADMIN
   ======================================== */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #fff;
}
/* Modal PIX - Versão corrigida com z-index máximo */
.pix-modal {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.95) !important;
    z-index: 999999 !important;
    justify-content: center !important;
    align-items: center !important;
    animation: fadeIn 0.3s ease;
    overflow: auto;
    padding: 20px;
}

.pix-modal.active {
    display: flex !important;
}

.pix-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 3px solid #ff4500;
    border-radius: 20px;
    padding: 30px 25px 40px 25px;
    max-width: 550px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 80px rgba(255, 69, 0, 0.5);
    animation: slideIn 0.4s ease;
    z-index: 1000000 !important;
}

.pix-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 69, 0, 0.3);
    border: 2px solid #ff4500;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
}

.pix-modal-close:hover {
    background: #ff4500;
    transform: rotate(90deg) scale(1.1);
}

.pix-modal h3 {
    color: #ff4500;
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

.pix-value {
    font-size: 48px;
    color: #fff;
    font-weight: bold;
    margin: 15px 0 25px 0;
    text-shadow: 0 0 20px rgba(255, 69, 0, 0.5);
    text-align: center;
}

.pix-order-id {
    color: #999;
    font-size: 14px;
    margin-bottom: 30px;
    font-family: monospace;
    text-align: center;
}

.qrcode-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin: 15px auto;
    display: inline-block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.qrcode-container img {
    display: block;
    max-width: 280px;
    width: 100%;
    height: auto;
}

.pix-code {
    background: rgba(255, 69, 0, 0.15);
    border: 2px solid #ff4500;
    border-radius: 12px;
    padding: 18px;
    margin: 15px 0;
    word-break: break-all;
    font-family: monospace;
    font-size: 11px;
    color: #fff;
    max-height: 120px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    text-align: left;
}

.copy-pix-button {
    background: linear-gradient(135deg, #ff4500 0%, #ff6a00 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin: 15px auto;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.4);
    text-transform: uppercase;
}

.copy-pix-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 69, 0, 0.6);
    background: linear-gradient(135deg, #ff6a00 0%, #ff4500 100%);
}

.copy-pix-button:active {
    transform: translateY(-1px);
}

.pix-instructions {
    color: #aaa;
    font-size: 15px;
    margin: 15px 0;
    line-height: 1.6;
    text-align: center;
}

.pix-status {
    color: #ff4500;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Responsivo */
@media (max-width: 600px) {
    .pix-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .pix-value {
        font-size: 36px;
    }
    
    .qrcode-container img {
        max-width: 220px;
    }
}

/* ========================================
   ESTILOS ADMIN PANEL - Senhas Diárias
   ======================================== */

/* Container Principal */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: 100vh;
}

/* Header do Admin */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.header h1 {
    color: #fff;
    font-size: 32px;
    margin: 0;
    font-weight: bold;
}

/* Grid de Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Card Individual */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.5);
}

/* Header do Card */
.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.card-icon {
    font-size: 36px;
}

.card-header h3 {
    color: #fff;
    font-size: 24px;
    margin: 0;
    font-weight: bold;
}

/* Body do Card */
.card-body textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    resize: vertical;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.card-body textarea:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.card-body textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Ações do Card */
.card-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.card-actions button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: #fff;
}

.btn-load:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 114, 255, 0.4);
}

.btn-save {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.btn-save:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(56, 239, 125, 0.4);
}

/* Notificações */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 20px 30px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: bold;
    transform: translateX(400px);
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.notification.error {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: #fff;
}

/* Responsivo */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 20px;
    }
    
    .card-header h3 {
        font-size: 20px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        top: 10px;
    }
}
