* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f3f2ef;
    overflow: auto;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Tombol Admin Panel */
.admin-btn {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, #1e5a8c 0%, #2777b9 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(39, 119, 185, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 119, 185, 0.6);
    background: linear-gradient(135deg, #2777b9 0%, #1e5a8c 100%);
}

.admin-btn i {
    font-size: 16px;
}

.admin-btn span {
    font-weight: 600;
}

/* Tombol Developer Panel */
.dev-panel-btn {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, #1e5a8c 0%, #2777b9 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(39, 119, 185, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.dev-panel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 119, 185, 0.6);
    background: linear-gradient(135deg, #2777b9 0%, #1e5a8c 100%);
}

.dev-panel-btn i {
    font-size: 16px;
}

.dev-panel-btn span {
    font-weight: 600;
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .admin-btn {
        padding: 10px 16px;
        font-size: 12px;
        top: 70px;
        right: 10px;
    }
    
    .admin-btn span {
        display: none;
    }
    
    .admin-btn i {
        font-size: 18px;
    }
}

.container {
    display: flex;
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    padding-top: 70px;
    box-sizing: border-box;
}

.left-panel {
    width: 100%;
    background: white;
    border-right: 1px solid #ddd;
    overflow: hidden;
    transition: width 0.3s ease;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: calc(100vh - 70px);
    box-sizing: border-box;
}

.left-panel.shrink {
    width: 50%;
}

.header {
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
    background: white;
    flex-shrink: 0;
}

.header h2 {
    font-size: 18px;
    margin-bottom: 2px;
}

.header p {
    color: #666;
    font-size: 13px;
    margin: 1px 0;
}

.results-count {
    color: #999;
    font-size: 12px;
    margin-top: 2px;
}

.competition-list {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
}

.competition-card {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
    word-break: break-word;
    overflow-wrap: break-word;
}

.competition-card:hover {
    background: #f9f9f9;
}

.competition-card.selected {
    background: #eff3f8;
    border-left: 4px solid #0a66c2;
}

.card-content {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.card-info {
    flex: 1;
    padding-right: 10px;
    min-width: 0;
}

.card-title {
    color: #0a66c2;
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 14px;
    word-break: break-word;
}

.card-title:hover {
    text-decoration: underline;
}

.organizer {
    color: #333;
    font-weight: 500;
    font-size: 13px;
}

.location {
    color: #666;
    font-size: 12px;
    margin-top: 1px;
}

.deadline {
    color: #666;
    font-size: 12px;
    margin-top: 6px;
}

.status {
    color: #057642;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
}

.developer-actions {
    display: flex;
    gap: 8px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.dev-action-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    padding: 6px 10px;
    font-size: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.dev-action-btn:hover {
    background: #f0f0f0;
    border-color: #999;
    transform: scale(1.1);
}

.dev-action-btn.delete-btn:hover {
    background: #ffebee;
    border-color: #f44336;
}

.dev-action-btn.delete-btn:hover {
    background: #ffebee;
    border-color: #f44336;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
}

.close-btn:hover {
    color: #666;
}

.right-panel {
    width: 0;
    background: white;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    transition: width 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.right-panel.show {
    width: 50%;
}

.detail-header {
    padding: 16px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    flex-shrink: 0;
}

.detail-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-content {
    padding: 24px;
    padding-bottom: 100px;
    flex: 1;
    overflow-y: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.detail-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.detail-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin: 24px 0;
}

.btn {
    padding: 8px 24px;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background: #0a66c2;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #004182;
}

.btn-secondary {
    background: white;
    color: #0a66c2;
    border: 2px solid #0a66c2;
}

.btn-secondary:hover {
    background: #eff3f8;
}

.btn-outline {
    background: white;
    border: 1px solid #666;
    color: #333;
}

.btn-outline:hover {
    background: #f3f2ef;
}

.premium-banner {
    background: #fffbf0;
    border: 1px solid #f5e6c8;
    border-radius: 8px;
    padding: 16px;
    margin: 24px 0;
}

.premium-banner h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.premium-banner p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.premium-link {
    color: #0a66c2;
    font-weight: 600;
    text-decoration: none;
}

.recruiter-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin: 24px 0;
}

.recruiter-box h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.recruiter-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.recruiter-left {
    display: flex;
    gap: 12px;
}

.recruiter-avatar {
    width: 56px;
    height: 56px;
    background: #ddd;
    border-radius: 50%;
}

.recruiter-details h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.recruiter-details p {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.about-section {
    margin: 24px 0;
}

.about-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.about-section p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.about-section ul {
    margin-left: 24px;
    margin-top: 8px;
}

.about-section li {
    color: #333;
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 14px;
}

.icon-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
    border-radius: 4px;
}

.icon-btn:hover {
    background: #f3f2ef;
}

.filter-section {
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
    background: white;
    position: sticky;
    top: 0;
    z-index: 9;
    flex-shrink: 0;
}

.filter-section h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-chip {
    padding: 5px 14px;
    border: 1px solid #666;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.filter-chip:hover {
    background: #f3f2ef;
    border-color: #0a66c2;
}

.filter-chip.active {
    background: #0a66c2;
    color: white;
    border-color: #0a66c2;
}

/* Responsive untuk tablet */
@media (max-width: 1024px) {
    .left-panel.shrink {
        width: 40%;
    }
    
    .right-panel.show {
        width: 60%;
    }
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    body {
        padding-top: 0;
        overflow: auto;
    }

    .container {
        flex-direction: column;
        width: 100%;
        min-height: auto;
        padding-top: 70px;
        margin: 0;
        padding: 70px 0 0 0;
    }
    
    .admin-btn {
        padding: 10px 16px;
        font-size: 12px;
        top: 70px;
        right: 10px;
    }
    
    .admin-btn span {
        display: none;
    }
    
    .admin-btn i {
        font-size: 18px;
    }
    
    .left-panel {
        width: 100%;
        border-right: none;
        border-bottom: none;
        min-height: auto;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    .left-panel.shrink {
        width: 100%;
        display: none;
        border-right: none;
        border-bottom: none;
        min-height: auto;
        overflow: hidden;
    }
    
    .header {
        padding: 10px 16px;
        top: 0;
        z-index: 10;
        margin-top: 0;
        flex-shrink: 0;
        border-bottom: 1px solid #ddd;
    }
    
    .header h2 {
        font-size: 16px;
        margin-bottom: 1px;
    }
    
    .header p {
        font-size: 12px;
        margin: 1px 0;
    }
    
    .results-count {
        font-size: 11px;
        margin-top: 1px;
    }
    
    .filter-section {
        padding: 10px 16px;
        top: 0;
        z-index: 9;
        flex-shrink: 0;
        border-bottom: 1px solid #ddd;
    }
    
    .filter-section h3 {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .filter-chips {
        gap: 4px;
        max-height: 60px;
        overflow-y: auto;
        padding-bottom: 2px;
    }
    
    .filter-chip {
        padding: 4px 10px;
        font-size: 11px;
        flex-shrink: 0;
    }
    
    .competition-list {
        max-height: none;
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
        -webkit-overflow-scrolling: touch;
    }
    
    .competition-card {
        padding: 10px 12px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .card-info {
        padding-right: 15px;
    }
    
    .card-title {
        font-size: 13px;
        margin-bottom: 1px;
    }
    
    .organizer {
        font-size: 12px;
    }
    
    .location {
        font-size: 11px;
        margin-top: 1px;
    }
    
    .deadline,
    .status {
        font-size: 11px;
        margin-top: 4px;
    }
    
    .right-panel {
        width: 100%;
        max-height: 45vh;
        border-top: 1px solid #ddd;
        overflow: hidden;
        display: none;
        flex-direction: column;
    }
    
    .right-panel.show {
        width: 100%;
        max-height: 100vh;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1001;
        background: white;
        animation: slideFromRight 0.3s ease-out;
    }
    
    @keyframes slideFromRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    .detail-header {
        padding: 12px 16px;
        top: 0;
        position: sticky;
        z-index: 10;
        margin-top: 0;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: white;
        border-bottom: 1px solid #ddd;
    }
    
    #closeDetailBtn {
        display: flex !important;
        font-size: 24px;
        color: #333;
        padding: 8px;
        min-width: 40px;
        min-height: 40px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.2s;
        background: none;
        border: none;
        cursor: pointer;
    }
    
    #closeDetailBtn:hover {
        background-color: #f0f0f0;
    }
    
    .detail-content {
        padding: 12px 16px;
        padding-bottom: 20px;
        overflow-y: auto;
        flex: 1;
        -webkit-overflow-scrolling: touch;
    }
    
    .detail-title {
        font-size: 16px;
        margin-bottom: 6px;
        font-weight: 600;
    }
    
    .detail-meta {
        font-size: 12px;
        margin-bottom: 10px;
        color: #666;
    }
    
    .action-buttons {
        gap: 6px;
        margin: 10px 0;
        flex-wrap: wrap;
        display: flex;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 11px;
        flex: 1;
        min-width: 100px;
        border-radius: 16px;
    }
    
    .logo {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .about-section {
        margin: 10px 0;
    }
    
    .about-section h3 {
        font-size: 14px;
        margin-bottom: 8px;
        font-weight: 600;
    }
    
    .about-section p {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 8px;
    }
    
    .recruiter-box {
        padding: 12px;
        margin: 12px 0;
    }
    
    .recruiter-box h3 {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .recruiter-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .recruiter-avatar {
        width: 44px;
        height: 44px;
    }
    
    .recruiter-details h4 {
        font-size: 13px;
    }
    
    .recruiter-details p {
        font-size: 11px;
    }
    
    .premium-banner {
        padding: 10px 12px;
        margin: 12px 0;
    }
    
    .premium-banner h3 {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .premium-banner p {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .icon-btn {
        padding: 6px;
        font-size: 16px;
    }
}

/* Responsive untuk mobile kecil (< 480px) */
@media (max-width: 480px) {
    .header {
        padding: 10px 12px;
    }
    
    .header h2 {
        font-size: 16px;
    }
    
    .filter-section {
        padding: 10px 12px;
    }
    
    .filter-section h3 {
        font-size: 12px;
    }
    
    .filter-chip {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .competition-card {
        padding: 10px;
    }
    
    .logo {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .card-content {
        gap: 8px;
    }
    
    .detail-content {
        padding: 12px;
        padding-bottom: 70px;
    }
    
    .detail-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .action-buttons {
        gap: 6px;
        margin: 12px 0;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 100px;
    }
    
    .about-section h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .about-section p {
        font-size: 12px;
        margin-bottom: 8px;
    }
}

/* Status Badge Styling */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

.status-badge.aktif {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.expired {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}