/* Agent Page Specific Styles */

/* Hero Section */
.hero-section {
    background: #0d6efd;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Requirements Card */
.requirements-card {
    transition: all 0.3s ease;
    border-left: 4px solid #0d6efd;
}

.requirements-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2) !important;
}

.requirement-item {
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.requirement-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
    transform: translateX(5px);
}

.requirement-icon {
    transition: all 0.3s ease;
}

.requirement-item:hover .requirement-icon {
    transform: scale(1.1);
}

/* Conduct Card */
.conduct-card {
    transition: all 0.3s ease;
    border-left: 4px solid #198754;
}

.conduct-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(25, 135, 84, 0.2) !important;
}

.conduct-item {
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.conduct-item:hover {
    background-color: rgba(25, 135, 84, 0.05);
    transform: translateX(5px);
}

.conduct-number {
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.conduct-item:hover .conduct-number {
    transform: scale(1.1);
}

/* Payment Card */
.payment-card {
    transition: all 0.3s ease;
    border-left: 4px solid #0dcaf0;
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(13, 202, 240, 0.2) !important;
}

.commission-rate {
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.payment-card:hover .commission-rate {
    transform: scale(1.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

/* Assignment Card */
.assignment-card {
    transition: all 0.3s ease;
    border-left: 4px solid #ffc107;
}

.assignment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.2) !important;
}

/* Application Form Card */
.application-form-card {
    transition: all 0.3s ease;
    border-left: 4px solid #212529;
}

.application-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(33, 37, 41, 0.2) !important;
}

/* Form Enhancements */
.form-control {
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    transform: translateY(-2px);
}

.form-control:hover {
    border-color: #0d6efd;
}

/* Agreement Section */
.agreement-section .alert {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.alert-info {
    background: #d1ecf1;
    border-left: 4px solid #0dcaf0;
}

.alert-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

/* Official Use Section */
.official-use-section {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.official-use-section:hover {
    border-color: #0d6efd;
    background: #d1ecf1;
}

/* Call to Action Section */
.bg-primary {
    background: #0d6efd !important;
    position: relative;
    overflow: hidden;
}

.bg-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.bg-primary .btn {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.bg-primary .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

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

.requirements-card,
.conduct-card,
.payment-card,
.assignment-card,
.application-form-card {
    animation: fadeInUp 0.6s ease-out;
}

.requirements-card:nth-child(1) { animation-delay: 0.1s; }
.conduct-card:nth-child(2) { animation-delay: 0.2s; }
.payment-card:nth-child(1) { animation-delay: 0.3s; }
.assignment-card:nth-child(2) { animation-delay: 0.4s; }
.application-form-card { animation-delay: 0.5s; }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .application-form-card .card-body {
        padding: 2rem !important;
    }
    
    .requirement-item,
    .conduct-item {
        padding: 0.25rem;
    }
    
    .requirement-icon,
    .conduct-number {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem;
    }
    
    .commission-rate {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .card-header h3 {
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .application-form-card .card-body {
        padding: 1.5rem !important;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .h2 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .hero-section,
    .bg-primary {
        background: white !important;
        color: black !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    
    .btn {
        display: none !important;
    }
    
    .requirement-item:hover,
    .conduct-item:hover {
        background-color: transparent !important;
        transform: none !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000 !important;
    }
    
    .requirement-icon,
    .conduct-number,
    .commission-rate {
        border: 2px solid #000 !important;
    }
    
    .form-control {
        border: 2px solid #000 !important;
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.form-check-input:focus {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #0d6efd;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
