/* ============================================
   COMPONENTS.CSS - Reusable Components
   ============================================ */

/* Card Components */
.card {
    background: var(--bg-primary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.card-bordered {
    border-left: 5px solid var(--primary-color);
}

.info-card {
    background: var(--bg-primary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--primary-color);
}

.info-card h3 {
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    margin-bottom: 15px;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Module Card */
.module-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: var(--radius-xl);
    padding: 35px;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border-top: 5px solid var(--primary-color);
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.module-card h3 {
    color: var(--primary-dark);
    font-size: 2em;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 15px;
}

.module-number {
    background: var(--primary-color);
    color: var(--text-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
}

/* Step Component */
.workflow-steps {
    margin-top: 25px;
}

.step {
    background: var(--bg-primary);
    padding: var(--spacing-md);
    margin-bottom: 15px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.step:hover {
    border-left-width: 6px;
    transform: translateX(5px);
}

.step-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.step-number {
    background: var(--primary-color);
    color: var(--text-white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: var(--font-size-sm);
}

.step-title {
    font-weight: bold;
    color: var(--primary-dark);
    font-size: var(--font-size-lg);
}

.step-content {
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
    line-height: 1.7;
}

.step-content ul {
    margin-left: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.step-content li {
    margin-bottom: 8px;
}

/* Value Box */
.value-box {
    background: var(--bg-gradient);
    color: var(--text-white);
    padding: 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    min-width: 250px;
    box-shadow: var(--shadow-md);
}

.value-box h4 {
    font-size: 1.8em;
    margin-bottom: var(--spacing-sm);
}

.value-box p {
    font-size: 1.1em;
    opacity: 0.95;
}

/* Badge */
.badge {
    display: inline-block;
    background: var(--success-color);
    color: var(--text-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: var(--font-size-sm);
    margin-right: 5px;
}

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

.badge-warning {
    background: var(--accent-color);
    color: var(--text-primary);
}

/* Highlight Box */
.highlight-box {
    background: var(--warning-color);
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    margin-top: 15px;
    border-radius: var(--radius-sm);
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table th {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 12px;
    text-align: left;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.table tr:hover {
    background: var(--bg-secondary);
}

.fees-table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.fees-table th {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 12px;
    text-align: left;
}

.fees-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.fees-table tr:hover {
    background: var(--bg-secondary);
}

/* Button Components */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-white);
}

.btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
    margin-top: var(--spacing-md);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-md);
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px var(--primary-color);
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--bg-secondary);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Alert Messages */
.alert {
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background: var(--warning-color);
    color: #856404;
    border-left: 4px solid var(--accent-color);
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}


