/*
 * Custom CSS for Smart Real Ideal E-Learning Platform
 * This file contains all custom styles extracted from Blade templates
 * Organized by component/feature for better maintainability
 */

/* ========================================
   ADMIN LAYOUT STYLES
   ======================================== */

/* Modern Admin Panel Styling with Darker Colors */
:root {
    --primary-color: #556ee6;
    --secondary-color: #495057;
    --success-color: #34c38f;
    --info-color: #50a5f1;
    --warning-color: #f1b44c;
    --danger-color: #f46a6a;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --text-color: #2c3e50;
    --text-muted: #6c757d;
}

/* Header Enhancements */
#page-topbar {
    background: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.navbar-brand-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Mobile Logo Fix */
@media (max-width: 768px) {
    .navbar-brand-box .logo {
        display: block !important;
    }
    .navbar-brand-box .logo-sm {
        display: none !important;
    }
}

/* Right Sidebar Fix */
.right-bar {
    right: -300px;
    transition: right 0.3s ease;
}

.right-bar.show {
    right: 0;
}

/* Loading Animation */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Statistics Cards */
.mini-stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mini-stat-icon .avatar-title {
    font-size: 24px;
}
.mini-stats-wid h4 {
    color: #222;
    font-weight: 600;
    font-size: 1.5rem;
}
.mini-stats-wid p {
    color: #888;
    font-weight: 500;
}

/* Darker Text Colors */
body {
    color: var(--text-color);
    font-weight: 400;
}

.text-muted {
    color: var(--text-muted) !important;
}

.card-title {
    color: var(--dark-color);
    font-weight: 600;
}

.card-body {
    color: var(--text-color);
}

/* Card Enhancements */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* Button Enhancements */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-info {
    background-color: var(--info-color);
    border-color: var(--info-color);
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

/* Table Enhancements */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: var(--dark-color);
}

.table tbody tr:hover {
    background-color: rgba(85, 110, 230, 0.05);
}

.table tbody td {
    color: var(--text-color);
}

/* Form Enhancements */
.form-control {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    color: var(--text-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(85, 110, 230, 0.25);
    color: var(--text-color);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
}

.alert-success {
    background-color: rgba(52, 195, 143, 0.1);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(244, 106, 106, 0.1);
    color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(241, 180, 76, 0.1);
    color: var(--warning-color);
}

.alert-info {
    background-color: rgba(80, 165, 241, 0.1);
    color: var(--info-color);
}

/* Badge Enhancements */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* ========================================
   FRONTEND LAYOUT STYLES
   ======================================== */

/* Footer Styles */
.custom-footer-grid {
    display: grid;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

.custom-footer-section {
    text-align: left;
}

.custom-footer-section h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.custom-footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-footer-section ul li {
    margin-bottom: 0.5rem;
}

.custom-footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.custom-footer-section ul li a:hover {
    color: #ffffff;
}

.custom-footer-apps {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.custom-footer-apps img {
    height: 40px;
    width: auto;
}

.custom-footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.custom-footer-social a {
    color: #ffffff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.custom-footer-social a:hover {
    color: #cccccc;
}

/* Mobile Navigation */
.footer-mobile-navigation {
    display: none;
}

.footer-mobile-navigation ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-mobile-navigation ul li {
    flex: 1;
    text-align: center;
}

.footer-mobile-navigation ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    font-size: 12px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.footer-mobile-navigation ul li a:hover {
    color: #f1f1f1;
}

.footer-mobile-navigation ul li a ion-icon {
    font-size: 22px;
    margin-bottom: 5px;
    color: #ffffff;
}

.home-btn {
    background: #ffffff;
    color: #0c67ed;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    position: relative;
    top: -10px;
}

/* Footer Copyright */
.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: #ffffff;
    font-size: 14px;
}

.footer-copyright a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

/* Hide copyright on mobile, show only development info */
@media (max-width: 768px) {
    .copyright-text {
        display: none; /* Hide copyright on mobile */
    }
    .footer-copyright {
        justify-content: center; /* Center text on mobile */
        text-align: center;
    }
}

/* Mobile Navigation Responsive */
@media (max-width: 768px) {
    .footer-mobile-navigation {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #0c67ed;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        z-index: 1000;
        display: block;
    }
}

@media (min-width: 769px) {
    .footer-mobile-navigation {
        display: none;
    }
}

@media (min-width: 768px) {
    .custom-footer-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ========================================
   HOME PAGE STYLES
   ======================================== */

/* Text Animation Effect */
#unique-led-text-effect {
    font-family: 'Arial', sans-serif;
    font-size: 28px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    border: 2px solid #000;
}

#unique-led-text-effect p {
    margin: 0;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    font-weight: bold;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

#unique-led-text-effect p.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

#unique-led-text-effect p:nth-child(1) { color: #7a07a8; }
#unique-led-text-effect p:nth-child(2) { color: #1d005f; }
#unique-led-text-effect p:nth-child(3) { color: #086118; }
#unique-led-text-effect p:nth-child(4) { color: #000000; }
#unique-led-text-effect p:nth-child(5) { color: #3357FF; }
#unique-led-text-effect p:nth-child(6) { color: #3357FF; }
#unique-led-text-effect p:nth-child(7) { color: #FF33A1; }
#unique-led-text-effect p:nth-child(8) { color: #FF33A1; }
#unique-led-text-effect p:nth-child(9) { color: #A133FF; }
#unique-led-text-effect p:nth-child(10) { color: #A133FF; }
#unique-led-text-effect p:nth-child(11) { color: #33FFF5; }
#unique-led-text-effect p:nth-child(12) { color: #33FFF5; }
#unique-led-text-effect p:nth-child(13) { color: #400050; }
#unique-led-text-effect p:nth-child(14) { color: #b30000; }
#unique-led-text-effect p:nth-child(15) { color: #550000cb; }
#unique-led-text-effect p:nth-child(16) { color: #790000; }

@media (max-width: 767px) {
    #unique-led-text-effect {
        font-size: 20px;
        height: 250px;
    }
}

@keyframes textAnimation {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    10% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
    30% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}

/* Banner Area Responsive */
@media only screen and (max-width: 991px) {
    #banner_area_tow .banner_content2 {
        padding-top: 39%;
        text-align: center;
    }
}

/* Achievement Area */
.achieve-area {
    background-color: #f5f6fa;
    text-align: center;
}

.achieve-area .section-title span {
    color: #e74c3c;
    font-size: 24px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.achieve-area .section-title h2 {
    color: #333;
    font-size: 20px;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 800px;
}

@media (max-width: 768px) {
    .achieve-area {
        padding: 50px 0;
    }
    
    .achieve-area .section-title span {
        font-size: 20px;
    }
    
    .achieve-area .section-title h2 {
        font-size: 18px;
        max-width: 100%;
        padding: 0 20px;
    }
}

/* ========================================
   ORDER FORM STYLES
   ======================================== */

/* Order Form Responsive Design */
@media (max-width: 767px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .table td, .table th {
        font-size: 9px;
    }

    .form-group input, .form-group textarea, .form-group select {
        font-size: 14px;
    }

    .btn-warning {
        font-size: 14px;
    }
}

/* ========================================
   ADDITIONAL COMPONENT STYLES
   ======================================== */

/* Certificate Section */
.certificate {
    text-align: center;
}

.certificate h3 span {
    color: #ffffff;
}

.certificate img {
    width: 150px;
    height: auto;
}

/* Custom Footer */
.custom-footer {
    background-color: #28274d;
    color: white;
    padding: 40px 20px;
    margin-top: auto;
    text-align: center;
}

.footer-copyright {
    background-color: #351f56;
    color: white;
    padding: 10px 0;
    margin-top: 2px;
    font-size: 14px;
} 