/* Fresh Cartoon Theme V9 - Mobile Responsiveness */

:root {
    --fresh-sky-top: #87CEEB;
    --fresh-sky-bottom: #E0F7FA;
    --fresh-wave-1: #4FC3F7;
    --fresh-wave-2: #29B6F6;
    --fresh-wave-3: #039BE5;
    --fresh-card-bg: rgba(255, 255, 255, 0.95);
    --fresh-panel-bg: rgba(255, 255, 255, 0.9);
    --fresh-primary: #29B6F6;
    --fresh-secondary: #FF9800;
    --fresh-text: #546E7A;
    --fresh-nav-bg: rgba(255, 255, 255, 0.8);
    --fresh-sidebar-bg: rgba(255, 255, 255, 0.95);
    --fresh-border-radius: 20px;
    --fresh-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Global Background */
body {
    background: linear-gradient(to bottom, var(--fresh-sky-top) 0%, var(--fresh-sky-bottom) 100%);
    background-attachment: fixed;
    font-family: 'Varela Round', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    color: var(--fresh-text);
}

/* Standalone Mode (Login/Register) - Hides Nav/Footer */
body.fresh-standalone>nav.navbar,
body.fresh-standalone>footer.footer,
body.fresh-standalone>.container {
    display: none !important;
}

body.fresh-standalone {
    overflow: hidden;
}

/* Clouds Animation - Global */
.fresh-clouds {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
    pointer-events: none;
}

.cloud {
    position: absolute;
    background: #fff;
    border-radius: 200px;
    opacity: 0.8;
}

.cloud::after,
.cloud::before {
    content: '';
    position: absolute;
    background: inherit;
    width: 50%;
    height: 100%;
    top: -40%;
    left: 10%;
    border-radius: 100px;
}

.cloud::after {
    width: 30%;
    height: 60%;
    top: -20%;
    left: auto;
    right: 10%;
}

.cloud-1 {
    width: 200px;
    height: 60px;
    top: 10%;
    left: -200px;
    animation: floatCloud 25s linear infinite;
}

.cloud-2 {
    width: 300px;
    height: 100px;
    top: 20%;
    left: -300px;
    animation: floatCloud 35s linear infinite 5s;
    opacity: 0.6;
}

.cloud-3 {
    width: 150px;
    height: 50px;
    top: 15%;
    left: -150px;
    animation: floatCloud 20s linear infinite 10s;
    opacity: 0.7;
}

@keyframes floatCloud {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(120vw);
    }
}

/* Waves Animation - Global */
.fresh-waves {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    background-position: 0 bottom;
    transform-origin: center bottom;
}

.wave-shape {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    background-size: 100px 100px;
}

.wave-1 {
    background: var(--fresh-wave-1);
    opacity: 0.7;
    bottom: 0;
    height: 150px;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    width: 150%;
    left: -25%;
    animation: waveRock 5s ease-in-out infinite alternate;
}

.wave-2 {
    background: var(--fresh-wave-2);
    opacity: 0.5;
    bottom: -20px;
    height: 180px;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    width: 150%;
    left: -10%;
    animation: waveRock 7s ease-in-out infinite alternate-reverse;
}

.wave-3 {
    background: var(--fresh-wave-3);
    opacity: 0.3;
    bottom: -40px;
    height: 200px;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    width: 150%;
    left: -30%;
    animation: waveRock 6s ease-in-out infinite alternate;
}

@keyframes waveRock {
    0% {
        transform: translateY(0) rotate(2deg);
    }

    100% {
        transform: translateY(20px) rotate(-2deg);
    }
}

/* Login/Register Wrapper */
.fresh-login-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fresh-login-card {
    background: var(--fresh-card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 380px;
    text-align: center;
    position: relative;
    animation: cardPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cardPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.fresh-login-header h2 {
    color: var(--fresh-text);
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 700;
}

/* Dashboard Styles */
.navbar-white {
    background: var(--fresh-nav-bg) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    color: var(--fresh-primary) !important;
    font-weight: 700;
}

.navbar-nav>li>a {
    color: var(--fresh-text) !important;
}

.navbar-nav>li>a:hover {
    color: var(--fresh-primary) !important;
}

.footer {
    color: var(--fresh-text) !important;
    background: transparent !important;
    border-top: none !important;
}

/* Sidebar */
.fresh-sidebar {
    background: var(--fresh-sidebar-bg);
    border-radius: var(--fresh-border-radius);
    padding: 20px;
    box-shadow: var(--fresh-shadow);
    margin-bottom: 20px;
}

.fresh-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fresh-menu li {
    margin-bottom: 10px;
}

.fresh-menu li a {
    display: block;
    padding: 12px 15px;
    color: var(--fresh-text);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.fresh-menu li a:hover,
.fresh-menu li.active a {
    background: var(--fresh-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(41, 182, 246, 0.3);
}

.fresh-menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Dashboard Grid */
.fresh-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 992px) {
    .fresh-dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Hero Section */
.fresh-hero {
    background: linear-gradient(135deg, var(--fresh-primary), #039BE5);
    border-radius: var(--fresh-border-radius);
    padding: 30px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(41, 182, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.fresh-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.fresh-hero-content h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.fresh-hero-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.fresh-hero-avatar {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    border: 4px solid rgba(255, 255, 255, 0.5);
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Content Cards */
.fresh-content-card {
    background: var(--fresh-panel-bg);
    border-radius: var(--fresh-border-radius);
    padding: 25px;
    box-shadow: var(--fresh-shadow);
    backdrop-filter: blur(5px);
    height: 100%;
}

.fresh-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.fresh-card-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--fresh-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
}

.fresh-card-header h3 i {
    margin-right: 10px;
    opacity: 0.8;
}

/* Info List */
.fresh-info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fresh-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.fresh-info-row:hover {
    background: #fff;
    transform: translateX(5px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.fresh-info-label {
    color: #90A4AE;
    font-size: 13px;
    font-weight: 600;
}

.fresh-info-value {
    color: var(--fresh-text);
    font-weight: 700;
    font-size: 15px;
}

/* Status Cards */
.fresh-status-card {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 5px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.fresh-status-card.success {
    border-left-color: #4CAF50;
}

.fresh-status-card.warning {
    border-left-color: #FF9800;
}

.fresh-status-card.danger {
    border-left-color: #F44336;
}

.fresh-status-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--fresh-text);
}

.fresh-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.fresh-status-badge.success {
    background: #4CAF50;
}

.fresh-status-badge.warning {
    background: #FF9800;
}

.fresh-status-badge.danger {
    background: #F44336;
}

/* Table Styles */
.fresh-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
}

.fresh-table th {
    background: rgba(41, 182, 246, 0.1);
    color: var(--fresh-text);
    font-weight: 700;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid rgba(41, 182, 246, 0.2);
}

.fresh-table th:first-child {
    border-top-left-radius: 10px;
}

.fresh-table th:last-child {
    border-top-right-radius: 10px;
}

.fresh-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--fresh-text);
    font-size: 14px;
}

.fresh-table tr:last-child td {
    border-bottom: none;
}

.fresh-table tr:hover td {
    background: rgba(255, 255, 255, 0.5);
}

/* Form Elements (Shared) */
.fresh-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.fresh-form-group label {
    display: block;
    color: var(--fresh-text);
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.fresh-input,
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: var(--fresh-text);
    background: #fff;
    height: auto;
}

.fresh-input:focus,
.form-control:focus {
    border-color: var(--fresh-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(41, 182, 246, 0.1);
}

.fresh-help-block,
.help-block {
    font-size: 12px;
    color: #90A4AE;
    margin-top: 5px;
}

/* Buttons (Shared) */
.fresh-btn-submit,
.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--fresh-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(41, 182, 246, 0.2);
}

.fresh-btn-submit:hover,
.btn-primary:hover {
    background: #039BE5;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(41, 182, 246, 0.3);
    border-color: transparent;
}

.fresh-btn-link {
    display: block;
    margin-top: 20px;
    color: var(--fresh-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.fresh-btn-link:hover {
    color: var(--fresh-primary);
}

/* Sun Decoration */
.fresh-sun {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 80px;
    height: 80px;
    background: var(--fresh-secondary);
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(255, 152, 0, 0.4);
    z-index: -1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    /* Sidebar */
    .fresh-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 250px;
        height: 100vh;
        z-index: 1000;
        margin: 0;
        border-radius: 0;
        transition: all 0.3s ease;
        padding-top: 60px;
    }

    .fresh-sidebar.active {
        left: 0;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .fresh-sidebar-toggle {
        display: block !important;
    }

    /* Hero Section */
    .fresh-hero {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .fresh-hero-avatar-wrapper {
        margin-top: 20px;
    }

    .fresh-hero::after {
        top: -20%;
        right: -20%;
    }

    /* Dashboard Grid */
    .fresh-dashboard-grid {
        grid-template-columns: 1fr;
    }

    /* Content Cards */
    .fresh-content-card {
        padding: 15px;
    }

    /* Tables */
    .table-responsive {
        border: 0;
    }

    .fresh-table th,
    .fresh-table td {
        white-space: nowrap;
        padding: 10px;
    }

    /* Login/Register */
    .fresh-login-card {
        width: 90%;
        padding: 20px;
    }
}

.fresh-sidebar-toggle {
    display: none;
}