/**
 * CollegeKampus OneForm - Frontend Styles
 *
 * @package CK_OneForm
 */

/* General Styles */
.ck-oneform-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.ck-oneform-form {
    max-width: 100%;
}

.required {
    color: #dc3545;
}

.form-message {
    margin-top: 15px;
}

.form-message.success {
    padding: 12px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
}

.form-message.error {
    padding: 12px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

/* Home Page */
.ck-oneform-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 40px;
}

.ck-oneform-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.ck-oneform-hero .lead {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.ck-oneform-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

.btn-primary:hover {
    background-color: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-outline-primary:hover {
    background-color: white;
    color: #667eea;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Features Section */
.ck-oneform-features {
    padding: 60px 0;
}

.ck-oneform-features h2 {
    margin-bottom: 50px;
    font-size: 2rem;
}

.feature-box {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.feature-box i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Statistics */
.ck-oneform-stats {
    background-color: #f8f9fa;
    padding: 60px 0;
    margin: 40px 0;
}

.stat-box {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

/* Course/College Cards */
.course-card,
.college-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.course-card:hover,
.college-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.course-thumbnail,
.college-thumbnail {
    overflow: hidden;
    height: 200px;
}

.course-thumbnail img,
.college-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-content,
.college-content {
    padding: 20px;
}

.course-card h3,
.college-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.course-meta,
.college-meta {
    margin: 15px 0;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.85rem;
    margin-right: 5px;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

.badge-pending {
    background-color: #ffc107;
    color: #000;
}

.badge-approved {
    background-color: #28a745;
    color: white;
}

.badge-rejected {
    background-color: #dc3545;
    color: white;
}

/* Registration Form */
.registration-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.registration-card h2 {
    margin-bottom: 10px;
}

.registration-card p {
    color: #6c757d;
    margin-bottom: 30px;
}

/* Application Form */
.ck-oneform-application .container {
    max-width: 900px;
}

.form-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.form-section h3 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control,
.form-control-file {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

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

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-actions {
    text-align: center;
    padding: 20px 0;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-stats {
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.stat-card.pending {
    border-left: 4px solid #ffc107;
}

.stat-card.approved {
    border-left: 4px solid #28a745;
}

.stat-card.rejected {
    border-left: 4px solid #dc3545;
}

.stat-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    color: #667eea;
}

.stat-content h3 {
    font-size: 2rem;
    margin: 0;
    color: #333;
}

.stat-content p {
    margin: 5px 0 0;
    color: #6c757d;
}

/* Applications Table */
.dashboard-applications {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table thead {
    background-color: #f8f9fa;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.table-striped tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-outline-secondary {
    background-color: transparent;
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

/* Quick Links */
.dashboard-quick-links {
    margin-top: 40px;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.quick-link-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-3px);
}

.quick-link-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
}

/* Status Check */
.status-check-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#status-result {
    margin-top: 20px;
}

/* Payment Page */
.payment-form-card,
.payment-info-card,
.payment-history-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.payment-info-card ul {
    padding-left: 20px;
}

.payment-info-card li {
    margin-bottom: 10px;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.payment-amount {
    font-size: 1.25rem;
    font-weight: bold;
    color: #28a745;
}

.payment-status {
    font-size: 0.875rem;
    padding: 3px 8px;
    border-radius: 3px;
}

.payment-status.success {
    background-color: #d4edda;
    color: #155724;
}

.payment-status.pending {
    background-color: #fff3cd;
    color: #856404;
}

/* Modals */
.ck-oneform-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.ck-oneform-modal.active {
    display: flex;
}

.ck-oneform-modal .modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.modal-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    font-size: 48px;
    margin: 0 auto 20px;
}

.modal-icon.success {
    background-color: #d4edda;
    color: #28a745;
}

.modal-icon.error {
    background-color: #f8d7da;
    color: #dc3545;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Responsive */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

[class*="col-"] {
    padding: 0 15px;
}

.col-md-3 { width: 25%; }
.col-md-4 { width: 33.333%; }
.col-md-6 { width: 50%; }
.col-md-8 { width: 66.666%; }
.col-md-12 { width: 100%; }

@media (max-width: 768px) {
    [class*="col-md-"] {
        width: 100%;
        margin-bottom: 20px;
    }

    .form-row {
        flex-direction: column;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .ck-oneform-hero h1 {
        font-size: 1.75rem;
    }
}

.text-center {
    text-align: center;
}

.justify-content-center {
    justify-content: center;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}
