/* =============================================
   ADMIN CASES - VISUAL PADRONIZADO
   Páginas: Create, Edit, View
   ============================================= */

/* ===== PAGE CONTAINER ===== */
.admin-cases-page {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(5, 5, 5, 0.98) 0%, rgba(15, 15, 15, 0.98) 100%);
    position: relative;
    padding: 40px 20px 80px 20px;
}

.page-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(249, 115, 22, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 140, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.page-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(249, 115, 22, 0.02) 2px,
            rgba(249, 115, 22, 0.02) 4px
        );
    animation: backgroundScroll 20s linear infinite;
}

@keyframes backgroundScroll {
    from { transform: translateY(0); }
    to { transform: translateY(40px); }
}

/* ===== CONTAINER ===== */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ===== HEADER ===== */
.admin-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInUp 0.6s ease-out;
}

.header-icon-wrapper {
    display: inline-block;
    margin-bottom: 25px;
}

.header-icon {
    font-size: 80px;
    filter: drop-shadow(0 10px 30px rgba(249, 115, 22, 0.4));
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.admin-title {
    font-size: 24px;
    font-weight: 900;
    margin: 0 0 15px 0;
    background: linear-gradient(135deg, #fff 0%, #87CEEB 50%, #4682B4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    letter-spacing: -1px;
}

.admin-subtitle {
    font-size: 18px;
    color: #cbd5e1;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FORM SECTIONS ===== */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    background: linear-gradient(145deg, rgba(15, 15, 15, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    border: 2px solid rgba(135, 206, 235, 0.3);
    border-radius: 20px;
    padding: 35px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(249, 115, 22, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.form-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.3), rgba(70, 130, 180, 0.3));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-section:hover::before {
    opacity: 1;
}

.form-section:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(135, 206, 235, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(135, 206, 235, 0.2);
}

.section-icon {
    font-size: 40px;
    margin-right: 15px;
    filter: drop-shadow(0 4px 10px rgba(135, 206, 235, 0.3));
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    background: linear-gradient(135deg, #fff 0%, #87CEEB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== FORM GRID ===== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.form-grid-full {
    grid-column: 1 / -1;
}

/* ===== FORM GROUPS ===== */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-label:hover {
    color: #87CEEB;
    transform: translateX(2px);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 15px 18px;
    background: rgba(30, 30, 30, 0.6);
    border: 2px solid rgba(249, 115, 22, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(249, 115, 22, 0.4);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    background: rgba(30, 30, 30, 0.9);
    border-color: #87CEEB;
    box-shadow: 
        0 0 0 4px rgba(249, 115, 22, 0.1),
        0 0 20px rgba(249, 115, 22, 0.3);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #64748b;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 6px;
    font-weight: 400;
}

/* ===== CHECKBOX STYLES ===== */
.form-checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    background: rgba(30, 30, 30, 0.4);
    border: 2px solid rgba(249, 115, 22, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-checkbox-group:hover {
    background: rgba(30, 30, 30, 0.6);
    border-color: rgba(249, 115, 22, 0.4);
}

.form-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #87CEEB;
    transition: all 0.3s ease;
}

.form-checkbox:checked {
    animation: checkBounce 0.3s ease-out;
}

@keyframes checkBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.form-checkbox-label {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

/* ===== UPLOAD AREA ===== */
.upload-area {
    padding: 40px;
    background: rgba(30, 30, 30, 0.4);
    border: 3px dashed rgba(249, 115, 22, 0.3);
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    background: rgba(30, 30, 30, 0.6);
    border-color: rgba(249, 115, 22, 0.6);
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.2);
}

.upload-area.drag-over {
    background: rgba(249, 115, 22, 0.1);
    border-color: #87CEEB;
    transform: scale(1.05);
}

.upload-icon {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.upload-text {
    font-size: 16px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 14px;
    color: #94a3b8;
}

/* ===== INSTRUCTION BOX ===== */
.instruction-box {
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.instruction-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 12px;
}

.instruction-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instruction-list li {
    font-size: 14px;
    color: #cbd5e1;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.instruction-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #87CEEB;
    font-weight: bold;
}

/* ===== BUTTONS ===== */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-cancel {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: #fff;
    border: 2px solid rgba(148, 163, 184, 0.3);
}

.btn-cancel:hover {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(71, 85, 105, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #87CEEB 0%, #4682B4 100%);
    color: #0F1B2A;
    border: 2px solid rgba(135, 206, 235, 0.5);
    box-shadow: 0 10px 30px rgba(135, 206, 235, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.6);
}

.btn-icon {
    font-size: 20px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger animation delays */
.form-section:nth-child(1) { animation-delay: 0s; }
.form-section:nth-child(2) { animation-delay: 0.1s; }
.form-section:nth-child(3) { animation-delay: 0.2s; }
.form-section:nth-child(4) { animation-delay: 0.3s; }
.form-section:nth-child(5) { animation-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .admin-cases-page {
        padding: 20px 15px 60px 15px;
    }
    
    .admin-title {
        font-size: 36px;
    }
    
    .admin-subtitle {
        font-size: 16px;
    }
    
    .header-icon {
        font-size: 60px;
    }
    
    .form-section {
        padding: 25px 20px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .section-icon {
        font-size: 32px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .admin-title {
        font-size: 28px;
    }
    
    .header-icon {
        font-size: 50px;
    }
    
    .form-section {
        padding: 20px 15px;
    }
}








