/* ================================================
   STYLE BERSAMA - BOARD PROJECT KONG VECTOR
   ================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f5f7;
    color: #1c1c1e;
}

a { text-decoration: none; color: inherit; }

/* ---------- Login Page ---------- */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b, #334155);
}

.login-box {
    background: #fff;
    padding: 40px 36px;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 380px;
}

.login-box h1 {
    font-size: 22px;
    margin-bottom: 4px;
    color: #1e293b;
}

.login-box p.subtitle {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #334155;
}

.btn-primary {
    width: 100%;
    padding: 11px;
    background: #1e293b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.btn-primary:hover { background: #334155; }

.alert-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

/* ---------- Top Navbar (semua dashboard) ---------- */
.navbar {
    background: #1e293b;
    color: #fff;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .brand { font-weight: 700; font-size: 17px; }
.navbar .brand span { color: #93c5fd; }

.navbar .nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.navbar .btn-logout {
    background: #b91c1c;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
}

/* ---------- Board Visitor ---------- */
.board-container {
    padding: 28px;
}

.board-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e293b;
}

.board-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

@media (max-width: 1100px) {
    .board-columns { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .board-columns { grid-template-columns: 1fr; }
}

.column {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    min-height: 300px;
}

.column-header {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
}

.column-header .count {
    background: #e2e8f0;
    color: #334155;
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 12px;
}

.column.new_arrival .column-header { color: #b45309; border-color: #fbbf24; }
.column.trial_period .column-header { color: #0369a1; border-color: #38bdf8; }
.column.running .column-header { color: #15803d; border-color: #4ade80; }
.column.pending_close .column-header { color: #64748b; border-color: #94a3b8; }

.empty-state {
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
    padding: 30px 10px;
}

/* ---------- Project Card ---------- */
.project-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.project-card .card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.project-card .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #475569;
    flex-shrink: 0;
}

.project-card .card-name {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
}

.project-card .card-nickname {
    font-size: 12px;
    color: #64748b;
}

.project-card .card-meta {
    font-size: 12px;
    color: #475569;
    margin-bottom: 3px;
}

.project-card .card-meta b { color: #1e293b; }

.project-card .card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    border-top: 1px solid #e2e8f0;
    padding-top: 8px;
}

.btn-like, .btn-comment-toggle {
    flex: 1;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #475569;
}

.btn-like.liked {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.comment-section {
    margin-top: 10px;
    display: none;
}

.comment-section.open { display: block; }

.comment-list {
    max-height: 130px;
    overflow-y: auto;
    margin-bottom: 8px;
}

.comment-item {
    font-size: 12px;
    background: #fff;
    border-radius: 6px;
    padding: 6px 8px;
    margin-bottom: 6px;
}

.comment-item b { color: #1e293b; }
.comment-item .time { color: #94a3b8; font-size: 10px; display: block; margin-top: 2px; }

.comment-form {
    display: flex;
    gap: 6px;
}

.comment-form input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
}

.comment-form button {
    background: #1e293b;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
}

/* ---------- Placeholder dashboard (pic & judges sementara) ---------- */
.placeholder-box {
    margin: 40px auto;
    max-width: 500px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    color: #64748b;
}

/* ---------- PIC Dashboard (sidebar layout) ---------- */
.pic-layout {
    display: flex;
    min-height: calc(100vh - 57px);
}

.pic-sidebar {
    width: 220px;
    background: #0f172a;
    color: #fff;
    padding: 28px 0;
    flex-shrink: 0;
}

.pic-sidebar .profile-block {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 16px;
    border-bottom: 1px solid #1e293b;
}

.pic-sidebar .profile-photo {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    margin: 0 auto 10px;
    overflow: hidden;
}

.pic-sidebar .profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pic-sidebar .profile-name {
    font-size: 13px;
    font-weight: 600;
    padding: 0 12px;
}

.pic-sidebar nav a {
    display: block;
    padding: 12px 24px;
    font-size: 14px;
    color: #cbd5e1;
}

.pic-sidebar nav a.active {
    background: #1e293b;
    color: #fff;
    font-weight: 600;
    border-left: 3px solid #38bdf8;
}

.pic-sidebar nav a:hover { background: #1e293b; }
.pic-sidebar nav a.logout-link { color: #fca5a5; margin-top: 10px; }

.pic-content {
    flex: 1;
    padding: 28px;
}

.pic-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 18px;
}

.pic-box h3 {
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 14px;
}

.pic-box .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    min-height: 70px;
}

.pic-box .form-group input[type="text"],
.pic-box .form-group input[type="file"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
}

.project-select {
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.no-project-msg {
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
    padding: 30px 0;
}