/* OCC Membership Form Styles - Odisha Chamber of Commerce */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary-color: #6c757d;
    --header-bg: #003366;
    --header-bg-light: #004080;
    --section-bg: #f8f9fa;
    --border-color: #dee2e6;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --gradient-primary: linear-gradient(135deg, #f5e667 0%, #ffea2d 100%);
    --gradient-success: linear-gradient(135deg, #198754 0%, #20c997 100%);
    --gradient-warning: linear-gradient(135deg, #ffc107 0%, #ffda6a 100%);
    --gradient-admin: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    color: #333;
    min-height: 100vh;
}

/* ============================================
   FORM PAGE STYLES
   ============================================ */

/* Header Styles */
.form-header {
    background: var(--gradient-primary);
    color: white;
    padding: 40px 30px;
    text-align: center;
    margin-bottom: 35px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.form-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.form-header h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.form-header h1 i {
    margin-right: 12px;
    animation: bounce 2s infinite;
}

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

.form-header p {
    margin-bottom: 0;
    opacity: 0.95;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

/* Section Styles */
.form-section {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 28px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.form-section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.section-header {
    background: var(--gradient-primary);
    color: white;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    letter-spacing: 0.3px;
}

.section-header i {
    font-size: 1.3rem;
    margin-right: 12px;
    opacity: 0.9;
}

.section-body {
    padding: 30px;
}

/* Form Controls */
.form-label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.form-label .required {
    color: var(--danger-color);
    font-weight: 600;
    margin-left: 2px;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: #fafbfc;
}

.form-control:hover, .form-select:hover {
    border-color: #ced4da;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
    background-color: white;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

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

/* Checkbox and Radio Styles */
.checkbox-group {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 12px;
    padding: 25px;
    margin-top: 12px;
    border: 1px solid #e9ecef;
}

.checkbox-group .form-check {
    margin-bottom: 12px;
    padding-left: 32px;
    transition: var(--transition);
}

.checkbox-group .form-check:hover {
    background: rgba(13, 110, 253, 0.05);
    border-radius: 6px;
    margin-left: -8px;
    padding-left: 40px;
}

.checkbox-group .form-check-input {
    width: 20px;
    height: 20px;
    margin-left: -32px;
    cursor: pointer;
    border: 2px solid #ced4da;
    transition: var(--transition);
}

.checkbox-group .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-group .form-check-label {
    color: #495057;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.checkbox-group .form-check-input:checked + .form-check-label {
    color: var(--primary-color);
    font-weight: 600;
}

.radio-group {
    display: flex;
    gap: 35px;
    margin-top: 12px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.radio-group .form-check {
    padding-left: 32px;
}

.radio-group .form-check-input {
    width: 20px;
    height: 20px;
    margin-left: -32px;
    cursor: pointer;
}

/* Subscription Section */
.subscription-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #90caf9;
}

.subscription-section .section-header {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
}

.subscription-section .section-body {
    background: rgba(255,255,255,0.7);
}

.calculated-field {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%) !important;
    border: 2px solid #ffc107 !important;
    font-weight: 600;
    color: #5d4037;
}

/* Buttons */
.btn-calculate {
    background: var(--gradient-warning);
    border: none;
    color: #212529;
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-calculate:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.btn-calculate:active {
    transform: translateY(-1px);
}

.btn-submit {
    background: var(--gradient-success);
    border: none;
    color: white;
    font-weight: 600;
    padding: 18px 60px;
    border-radius: 12px;
    font-size: 1.15rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(25, 135, 84, 0.3);
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(25, 135, 84, 0.4);
    color: white;
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* Editor Container */
.editor-container {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.editor-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

.word-limit {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 8px;
    display: inline-block;
    padding: 4px 12px;
    background: #f8f9fa;
    border-radius: 20px;
}

/* Alert Messages */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: var(--shadow-sm);
}

.alert-floating {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 320px;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   ADMIN PANEL STYLES
   ============================================ */

.admin-sidebar {
    background: var(--gradient-admin);
    min-height: 100vh;
    padding: 0;
    position: sticky;
    top: 0;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}

.admin-sidebar .px-3 {
    background: rgba(0,0,0,0.2);
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.75);
    padding: 14px 22px;
    border-radius: 10px;
    margin: 6px 15px;
    transition: var(--transition);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.admin-sidebar .nav-link:hover {
    background: rgba(255,255,255,0.12);
    color: white;
    transform: translateX(5px);
}

.admin-sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.8) 0%, rgba(13, 110, 253, 0.6) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.admin-sidebar .nav-link i {
    margin-right: 12px;
    width: 22px;
    font-size: 1.1rem;
}

/* Dashboard Cards */
.dashboard-card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.dashboard-card .card-body {
    padding: 28px;
    position: relative;
}

.dashboard-card .stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-card .stat-label {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-card .card-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    opacity: 0.1;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    animation: bgMove 20s linear infinite;
}

@keyframes bgMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-30px, -30px); }
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.35);
    padding: 45px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.5s ease-out;
}

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

.login-card h2 {
    color: #333;
    margin-bottom: 35px;
    text-align: center;
    font-weight: 700;
}

.login-card .form-control {
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    font-size: 1rem;
}

.login-card .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.login-card .btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.login-card .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* DataTables Customization */
.dataTables_wrapper {
    padding: 10px 0;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 10px;
    padding: 10px 18px;
    border: 2px solid #e9ecef;
    transition: var(--transition);
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
    outline: none;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 8px;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
}

/* Table Styles */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    padding: 15px 12px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: rgba(13, 110, 253, 0.05);
}

.table tbody td {
    padding: 14px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f4;
}

/* Action Buttons */
.btn-action {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin: 3px;
    transition: var(--transition);
}

.btn-action:hover {
    transform: translateY(-2px);
}

.btn-action.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-action.btn-danger:hover {
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-action.btn-outline-danger:hover {
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

/* Export Buttons */
.export-btn-group {
    margin-bottom: 0;
}

.export-btn-group .btn {
    margin-left: 10px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    transition: var(--transition);
}

.export-btn-group .btn:hover {
    transform: translateY(-2px);
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.card-header {
    background: white;
    border-bottom: 2px solid #f1f3f4;
    padding: 18px 25px;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 2px solid #f1f3f4;
    padding: 20px 25px;
}

.modal-footer {
    border-top: 2px solid #f1f3f4;
    padding: 18px 25px;
}

/* Responsive */
@media (max-width: 992px) {
    .admin-sidebar {
        position: fixed;
        z-index: 1000;
        transform: translateX(-100%);
        transition: var(--transition);
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .form-header {
        padding: 25px 20px;
    }
    
    .form-header h1 {
        font-size: 1.5rem;
    }
    
    .section-body {
        padding: 20px;
    }
    
    .checkbox-group {
        padding: 18px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-submit {
        padding: 15px 40px;
        font-size: 1rem;
    }
    
    .dashboard-card .stat-number {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .no-print, .admin-sidebar, .export-btn-group {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        background: white;
    }
    
    .form-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
}

/* Badge Styles */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
}

/* Tooltips */
[title] {
    position: relative;
}
