/* Theme Variables */
:root {
    /* Light Theme */
    --primary-light: #000080; /* Biru ungu */
    --secondary-light: #ff6600; /* Orange */
    --dark-blue-light: #000080;
    --light-blue-light: #F8F7FF;
    --text-light: #2D2D2D;
    --text-secondary-light: #6C6C6C;
    --bg-light: #FFFFFF;
    --card-light: #FFFFFF;
    --border-light: #E0E0E0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    
    /* Dark Theme */
    --primary-dark: #46469f; /* Biru ungu lebih terang */
    --secondary-dark: #ff6600; /* Orange lebih soft */
    --dark-blue-dark: #4A3FDB;
    --light-blue-dark: #1E1B4B;
    --text-dark: #F5F5F5;
    --text-secondary-dark: #B2BEC3;
    --bg-dark: #121212;
    --card-dark: #1E1E1E;
    --border-dark: #333333;
    --shadow-dark: rgba(0, 0, 0, 0.3);
    
    /* Default to light theme */
    --primary: var(--primary-light);
    --secondary: var(--secondary-light);
    --dark-blue: var(--dark-blue-light);
    --light-blue: var(--light-blue-light);
    --text: var(--text-light);
    --text-secondary: var(--text-secondary-light);
    --bg: var(--bg-light);
    --card: var(--card-light);
    --border: var(--border-light);
    --shadow: var(--shadow-light);

    --badge-danger: #fff0f0;
    --badge-success:#d0ffe0;
    --badge-info:#d4ebff;
    --badge-primary:#d9ddff;
    --badge-warning:#fff6de;

    --text-success:#00ff26;
    --text-danger:#c10404;
    --text-error:#c64f4f;

    --font-primary: 'Figtree', sans-serif;
    --font-size:14px;
}

[data-theme="dark"] {
    --primary: var(--primary-dark);
    --secondary: var(--secondary-dark);
    --dark-blue: var(--dark-blue-dark);
    --light-blue: var(--light-blue-dark);
    --text: var(--text-dark);
    --text-secondary: var(--text-secondary-dark);
    --bg: var(--bg-dark);
    --card: var(--card-dark);
    --border: var(--border-dark);
    --shadow: var(--shadow-dark);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.2s ease, border-color 0.3s ease;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a{
    color: var(--primary);
}
input{
    outline: none;
}
span.required, i.required {
    color: var(--text-danger);
}
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 1000;
}
.skip-link:focus {
    top: 0;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--card);
    box-shadow: 0 1px 3px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background-color: var(--primary);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.logo-text span {
    color: var(--primary);
}

.content {
    padding: 40px;
}

/* Navigation */
.nav-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}

.nav-links a:hover, .nav-links a:focus {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-links a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.link-unset{
    color: var(--primary);
    text-decoration: none;
}
.link-unset:hover{
    color: var(--secondary);
}

.error-container{
    display: flex;
    min-height: calc(100vh - 70px);
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.error-image{
    text-align: center;
}
.error-description{
    margin-top:10px;
    margin-bottom:40px;
}
.error-body .error-title{
    font-weight:bold;
    font-size: 34px;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

.theme-toggle:hover, .theme-toggle:focus {
    background-color: var(--light-blue);
    color: var(--primary);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 12px;
}

.auth-btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.login-btn {
    color: var(--primary);
    border: 1px solid var(--primary);
}

.login-btn:hover, .login-btn:focus {
    background-color: rgba(94, 86, 255, 0.1);
}

.register-btn {
    background-color: var(--primary);
    color: white;
}

.register-btn:hover, .register-btn:focus {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark-blue) 100%);
    padding: 80px 0;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image-placeholder {
    background-color: rgba(255,255,255,0.1);
    border-radius: 8px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    border: 2px dashed rgba(255,255,255,0.2);
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.primary-btn {
    background-color: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    border: 1px var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.primary-btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    color: white !important;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    cursor: pointer;
}
.secondary-btn:hover, .secondary-btn:focus {
    background-color: #d2d2ff;
    border-color: white;
}
.secondary-btn.btn-bg-light{
    color: var(--text) !important;
}


/* User Menu */
.user-menu {
    position: relative;
}
.user-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background-color 0.2s;
}
.user-avatar:hover {
    background-color: var(--light-blue);
}
.user-avatar img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}
.user-avatar span {
    font-size: 14px;
    font-weight: 500;
}
.user-avatar i {
    font-size: 12px;
    transition: transform 0.2s;
}
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--card);
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow);
    min-width: 200px;
    padding: 10px 0;
    margin-top: 10px;
    display: none;
    z-index: 100;
    border: 1px solid var(--border);
}
.user-dropdown.show {
    display: block;
    animation: fadeIn 0.2s;
}
.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}
.user-dropdown a:hover {
    background-color: var(--light-blue);
    color: var(--primary);
}
.user-dropdown a i {
    width: 20px;
    text-align: center;
}

@media (max-width: 480px) {
    .user-menu .user-avatar span{
        display: none;
    }
}


/* Search Section */
.search-section {
    background-color: var(--card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow);
    margin-top: -40px;
    position: relative;
    z-index: 2;
    border: 1px solid var(--border);
}

.search-container {
    display: flex;
    background: var(--card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.search-field {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 15px;
    background-color: var(--card);
    color: var(--text);
    border-right: 1px solid var(--border);
}

.search-field::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 0 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.search-btn:hover, .search-btn:focus {
    background-color: #E67347;
}

/* Sections */
.section {
    padding: 80px 0;
}
.section-title {
    margin-bottom: 40px;
    text-align: center;
}
.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}
.section-title p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}
.category-card {
    background: var(--card);
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border);
}
.category-card:hover, .category-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
    border-color: var(--primary);
}
.category-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary);
    font-size: 20px;
}
.category-card h3 {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 16px;
}
.category-card p {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

/* Jobs Section */
.jobs-container {
    background-color: var(--light-blue);
    padding: 60px 0;
}
.job-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}
.job-list .error-message, .job-list .no-results{
    grid-column: span 3;
    padding-left: 20px;
    padding-right: 20px;
    color: gray;
}
.job-card {
    background: var(--card);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border);
}
.job-card:hover, .job-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
    border-color: var(--primary);
}
.job-card.featured {
    border-left: 4px solid var(--secondary);
}
.job-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}
.company-logo {
    width: 50px;
    height: 50px;
    background-color: var(--light-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
}

.job-info {
    flex: 1;
}

.job-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text);
}

.job-info .company {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 5px;
}

.job-info .location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 13px;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tag {
    background-color: var(--light-blue);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.tag.orange {
    background-color: rgba(255, 122, 69, 0.1);
    color: var(--secondary);
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.salary {
    font-weight: 600;
    color: var(--secondary);
    font-size: 15px;
}

.apply-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
    gap: 8px;
}
.apply-btn:hover, .apply-btn:focus {
    background-color: var(--dark-blue);
}

.share-btn {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    font-size: 14px;
    align-items: center;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}
.share-btn:hover, .apply-btn:focus {
    background-color: rgba(94, 86, 255, 0.1);
}

button:disabled{
    background: #747474;
    color: white;
}
button:disabled:hover{
    background: #5f5f5f;
    color: white;
}

/* Testimonials */
.testimonials {
    background-color: var(--primary);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.05)" d="M0,0 L100,0 L100,100 L0,100 Z"></path></svg>');
    opacity: 0.1;
    background-size: cover;
}

.testimonials .section-title h2,
.testimonials .section-title p {
    color: white;
}

.testimonials .section-title p {
    opacity: 0.8;
}

.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: bold;
    font-size: 20px;
}

.author-info h4 {
    font-weight: 600;
    margin-bottom: 3px;
}

.author-info p {
    opacity: 0.8;
    font-size: 14px;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text);
}

.cta p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 18px;
}

/* Footer */
footer {
    background-color: var(--card);
    color: var(--text);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    text-decoration: none;
}

.footer-logo-icon {
    background-color: var(--primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.footer-about p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-links h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links ul li a:hover, .footer-links ul li a:focus {
    color: var(--primary);
}

.footer-links ul li a i {
    width: 20px;
    text-align: center;
}

.footer-newsletter input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid var(--border);
    margin-bottom: 10px;
    font-size: 14px;
    background-color: var(--bg);
    color: var(--text);
}

.footer-newsletter button {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
    transition: background-color 0.2s;
}

.footer-newsletter button:hover, .footer-newsletter button:focus {
    background-color: #E67347;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text);
    background-color: rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.social-links a:hover, .social-links a:focus {
    background-color: var(--primary);
    color: white;
}

[data-theme="dark"] .social-links a {
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.hidden-md{
    display:none;
}


/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        gap: 40px;
    }
    .hero-text {
        text-align: center;
    }
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image {
        display: flex;
        justify-content: center;
        width: 100%;
    }    
    .hero-image-placeholder {
        max-width: 500px;
        width: 100%;
    }

    .hidden-md{
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--card);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px var(--shadow);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 99;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links a {
        padding: 0;
    }
    
    .nav-links a.active:after {
        bottom: -5px;
    }
    
    .auth-buttons {
        display: none;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-field {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    .search-btn {
        padding: 15px;
        justify-content: center;
    }
    
    .job-list {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .hidden-md{
        display:block;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .primary-btn, .secondary-btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hidden-md{
        display:block;
    }
}

/*Skill*/
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.skill-tag {
    background-color: var(--light-blue);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}


.loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination button {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background-color: var(--bg);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination button.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination button:hover:not(.active) {
    background-color: var(--light-blue);
}

.contact-me{
    color: var(--text-secondary);
    font-size: 14px;
}

h4 {
    font-size: 1.2rem;
    font-weight: 500;
}

h1 .badge-title, h2 .badge-title, h3 .badge-title, h4 .badge-title, h5 .badge-title, h6 .badge-title {
    font-size: 13px;
    font-weight: normal;
    display: inline-block;
    padding: 3px 5px 3px 5px;
    border-radius: 8px;
    color: #505050;
    border: 1px solid #6c6c6c;
}
span.badge-title{
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 8px;
    color: #505050;
    border: 1px solid #6c6c6c;
}
.badge-title.badge-title-warning{
    border: 1px solid var(--badge-warning);
    color: #e5a810;
    background: var(--badge-warning);
}
.badge-title.badge-title-danger{
    border: 1px solid var(--badge-danger);
    color: #b91e1e;
    background: var(--badge-danger);
}
.badge-title.badge-title-success{
    border: 1px solid var(--badge-success);
    color: #1fab1c;
    background: var(--badge-success);
}
.badge-title.badge-title-primary{
    border: 1px solid var(--badge-primary);
    color: #2b66e6;
    background: var(--badge-primary);
}
.badge-title.badge-title-info{
    border: 1px solid var(--badge-info);
    color: #21a0f4;
    background: var(--badge-info);
}

.text-success{
    color: var(--text-success) !important;
}
.text-danger{
    color: var(--text-danger) !important;
}
.text-primary{
    color: var(--primary) !important;
}
.text-muted{
    color: #6c6c6c;
    font-size: 14px;
    font-weight: 500;
}

.pull-left{
    float: left;
}
.pull-right{
    float: right;
}

/* Error Summary Styles */
.errorSummary {
    background-color: var(--badge-danger);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    color: #721c24;
    font-size: var(--font-size);
}
.errorSummary p {
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.errorSummary p:before {
    content: "⚠️";
}
.errorSummary ul {
    margin: 0;
    padding-left: 24px;
}
.errorSummary li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 8px;
}
.errorSummary li:before {
    color: #dc3545;
    font-weight: bold;
    position: absolute;
    left: -15px;
}
/* Dark Theme Adjustments */
[data-theme="dark"] .errorSummary {
    background-color: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.4);
    color: #f8d7da;
}
[data-theme="dark"] .errorSummary li:before {
    color: #f8d7da;
}
input.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2) !important;
}
.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
[data-theme="dark"] .error-message {
    color: #f8a5a5;
}

/* Animasi */
.errorSummary {
    animation: fadeIn 0.3s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Upload File */
.upload-container {
    width: 100%;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 40px;
} 
.upload-container .upload-area {
    padding: 40px 20px;
    cursor: pointer;
}
.upload-container .file-input {
    display: none;
}    
.upload-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}
.upload-container .file-info {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}
/* END :: Upload File */


/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}
.modal.show {
    display: flex;
    opacity: 1;
}
.modal-content {
    background-color: var(--card);
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px var(--shadow);
    animation: modalFadeIn 0.3s;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--text);
}
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close:hover {
    color: var(--primary);
}
.modal-body {
    padding: 20px;
}
/* Modal backdrop */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}
.modal-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.3s;
}    
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}
/* Modal Loading overlay */
.modal-loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 10;
    border-radius: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.modal-loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4285f4;
    border-radius: 50%;
    animation: modalSpin 1s linear infinite;
    margin-bottom: 15px;
}
.modal-loading-text {
    color: #555;
    font-weight: 500;
}
/* END Modal */


/* Alert Styles */
.alert{
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 8px;
    border-left: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
}
.alert-icon {
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}
.alert-content {
    flex: 1;
}
.alert-title {
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}
.alert-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0;
    margin-top: 2px;
    flex-shrink: 0;
}
.alert-close:hover {
    opacity: 1;
}

/* Alert Types */
.alert-danger {
    background-color: var(--badge-danger);
    border-color: #dc3545;
    color: #721c24;
}
.alert-danger .alert-icon {
    color: #dc3545;
}
.alert-success {
    background-color: var(--badge-success);
    border-color: #28a745;
    color: #155724;
}
.alert-success .alert-icon {
    color: #28a745;
}
.alert-warning {
    background-color: var(--badge-warning);
    border-color: #ffc107;
    color: #856404;
}
.alert-warning .alert-icon {
    color: #ffc107;
}
.alert-info {
    background-color: var(--badge-info);
    border-color: #17a2b8;
    color: #0c5460;
}
.alert-info .alert-icon {
    color: #17a2b8;
}
.alert-notif {
    background-color: var(--badge-primary);
    border-color: var(--primary);
    color: var(--primary);
}
.alert-notif .alert-icon {
    color: var(--primary);
}

/* Dark Theme Adjustments */
[data-theme="dark"] .alert-danger {
    background-color: rgba(220, 53, 69, 0.15);
    color: #f8d7da;
}
[data-theme="dark"] .alert-success {
    background-color: rgba(40, 167, 69, 0.15);
    color: #d4edda;
}
[data-theme="dark"] .alert-warning {
    background-color: rgba(255, 193, 7, 0.15);
    color: #fff3cd;
}
[data-theme="dark"] .alert-info {
    background-color: rgba(23, 162, 184, 0.15);
    color: #d1ecf1;
}
[data-theme="dark"] .alert-notif {
    background-color: rgba(94, 86, 255, 0.15);
    color: #d9ddff;
}

/* Alert Variations */
.alert-outline {
    background-color: transparent;
    border: 1px solid;
}
.alert-outline.alert-danger {
    border-color: #dc3545;
    color: #dc3545;
}
.alert-outline.alert-success {
    border-color: #28a745;
    color: #28a745;
}
.alert-outline.alert-warning {
    border-color: #ffc107;
    color: #ffc107;
}
.alert-outline.alert-info {
    border-color: #17a2b8;
    color: #17a2b8;
}
.alert-outline.alert-notif {
    border-color: var(--primary);
    color: var(--primary);
}
.alert-solid {
    color: white;
    border: none;
}
.alert-solid.alert-danger {
    background-color: #dc3545;
}
.alert-solid.alert-success {
    background-color: #28a745;
}

.alert-solid.alert-warning {
    background-color: #ffc107;
}
.alert-solid.alert-info {
    background-color: #17a2b8;
}
.alert-solid.alert-notif {
    background-color: var(--primary);
}

/* Alert Sizes */
.alert-sm {
    padding: 12px 16px;
    font-size: 14px;
}
.alert-sm .alert-icon {
    font-size: 16px;
}
.alert-lg {
    padding: 20px 24px;
    font-size: 16px;
}
.alert-lg .alert-icon {
    font-size: 20px;
}

/* Alert with action buttons */
.alert-with-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.alert-action {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}
.alert-action-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.alert-danger .alert-action-btn {
    background-color: #dc3545;
    color: white;
}
.alert-success .alert-action-btn {
    background-color: #28a745;
    color: white;
}
.alert-warning .alert-action-btn {
    background-color: #ffc107;
    color: #212529;
}
.alert-info .alert-action-btn {
    background-color: #17a2b8;
    color: white;
}
.alert-notif .alert-action-btn {
    background-color: var(--primary);
    color: white;
}

.w-100{
    width:100%;
}

/* Style dasar untuk collapse */
.collapse {
    display: none;
}
.collapse.show {
    display: block;
}

/* Transition untuk animasi */
.collapsing {
    position: relative;
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

/* Style untuk toggle button (opsional) */
.toggle-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
}
.toggle-btn:hover {
    background-color: #0056b3;
}
.toggle-btn:after {
    content: '▼';
    margin-left: 5px;
    font-size: 12px;
}
.toggle-btn.collapsed:after {
    content: '▲';
}

/* Container untuk konten collapse */
.collapse-content {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
    background-color: transparent;
}
.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
    text-align: left;
}
.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa;
    font-weight: 600;
}
.table tbody + tbody {
    border-top: 2px solid #dee2e6;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}
.table-striped tbody tr:nth-of-type(even) {
    background-color: transparent;
}
/* Hover effect untuk striped table */
.table-striped tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

.table-sm {
    font-size: 0.875rem;
}
.table-sm th,
.table-sm td {
    padding: 0.3rem;
}
.table-sm thead th {
    padding: 0.3rem;
}
.table-bordered {
    border: 1px solid #dee2e6;
}
.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
}
.table-bordered thead th,
.table-bordered thead td {
    border-bottom-width: 2px;
}

/* Table striped + bordered */
.table-striped.table-bordered tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}
/* Table small + bordered */
.table-sm.table-bordered th,
.table-sm.table-bordered td {
    padding: 0.3rem;
    border: 1px solid #dee2e6;
}

.table-sm.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}
.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

/* Hover untuk striped table */
.table-striped.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}
.table-dark {
    color: #fff;
    background-color: #343a40;
}
.table-dark th,
.table-dark td,
.table-dark thead th {
    border-color: #454d55;
}
.table-dark.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.05);
}

.table-dark.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.075);
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-responsive > .table {
    margin-bottom: 0;
}


.table caption {
    caption-side: bottom;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    color: #6c757d;
    text-align: left;
    font-style: italic;
}
.table-condensed th,
.table-condensed td {
    padding: 0.2rem;
    font-size: 0.8rem;
}

/* Striped dengan warna berbeda */
.table-striped-primary tbody tr:nth-of-type(odd) {
    background-color: rgba(13, 110, 253, 0.05);
}
.table-striped-success tbody tr:nth-of-type(odd) {
    background-color: rgba(25, 135, 84, 0.05);
}
.table-striped-danger tbody tr:nth-of-type(odd) {
    background-color: rgba(220, 53, 69, 0.05);
}
.table-striped-warning tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 193, 7, 0.05);
}
.table-striped-info tbody tr:nth-of-type(odd) {
    background-color: rgba(13, 202, 240, 0.05);
}

/* Form  CSS*/
.form-group label {
    display: block;
    margin: 8px 0 6px 0;
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background-color: var(--bg);
    color: var(--text);
    font-family: inherit;
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
    margin-top: 8px;
    cursor: pointer;
}
.checkbox-label input {
    width: auto;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}
