/* ======================================================
   IDA Registration System — Unified Styles
   Version: 4.0.0
   ====================================================== */

/* --- Registration Form --- */
.ida-registration-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Montserrat', sans-serif;
}

.ida-registration-wrap h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 32px;
    color: #FFFFFF;
    text-align: center;
}

.ida-form-group {
    margin-bottom: 20px;
}

.ida-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.ida-form-group input[type="text"],
.ida-form-group input[type="email"],
.ida-form-group input[type="password"],
.ida-form-group input[type="tel"],
.ida-form-group input[type="number"],
.ida-form-group select,
.ida-form-group textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #2A2A2A;
    border-radius: 2px;
    background: #141414;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.3s ease, background 0.3s ease;
    appearance: none;
}

.ida-form-group input:focus,
.ida-form-group select:focus,
.ida-form-group textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,0.4);
    background: #1A1A1A;
}

.ida-form-group input::placeholder,
.ida-form-group textarea::placeholder {
    color: #666666;
}

.ida-form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23A0A0A0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 44px;
}

.ida-form-group select option {
    background: #141414;
    color: #FFFFFF;
    padding: 12px;
}

.ida-form-group select option:disabled {
    color: #444444;
}

.ida-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.ida-checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #111111;
    border: 1px solid #222222;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #FFFFFF;
    text-transform: none;
    letter-spacing: normal;
    transition: all 0.25s ease;
}

.ida-checkbox-grid label:hover {
    border-color: rgba(255,255,255,0.2);
    background: #161616;
}

.ida-checkbox-grid input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #FFFFFF;
    flex-shrink: 0;
}

.ida-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border: 1px solid #FFFFFF;
    border-radius: 2px;
    background: #FFFFFF;
    color: #000000;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ida-btn:hover {
    background: transparent;
    color: #FFFFFF;
}

.ida-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ida-form-response {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 2px;
    font-size: 0.95rem;
    font-weight: 500;
    display: none;
}

.ida-form-response.success {
    display: block;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #FFFFFF;
}

.ida-form-response.error {
    display: block;
    border: 1px solid #ff4444;
    background: rgba(255,68,68,0.08);
    color: #ff6666;
}

/* --- Dashboard --- */
.ida-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
}

.ida-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.ida-dash-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin: 0;
    color: #222;
}

.ida-badge {
    padding: 8px 14px;
    background: #eee;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
}

.ida-dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.ida-dash-card {
    background: #f9f9f9;
    padding: 24px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.ida-dash-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 16px;
    color: #222;
}

.ida-dash-card p {
    margin: 8px 0;
    font-size: 0.95rem;
    color: #444;
}

.ida-media-section {
    margin-top: 32px;
}

.ida-media-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.ida-hint {
    color: #666;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.ida-cat-media {
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 24px;
    border-radius: 4px;
    background: #fff;
}

.ida-cat-media h3 {
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: #333;
}

.ida-media-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ida-media-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #666;
    margin-bottom: 10px;
}

.ida-upload-zone {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.3s ease;
}

.ida-upload-zone:hover {
    border-color: #999;
    background: #fafafa;
}

.ida-media-list {
    margin-top: 12px;
}

.ida-media-item {
    position: relative;
    margin-top: 10px;
}

.ida-media-item img,
.ida-media-item video {
    max-width: 100%;
    border-radius: 4px;
    display: block;
}

.ida-delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    background: #ff4444;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.ida-delete-btn:hover {
    background: #cc0000;
}

#dash-message {
    margin-top: 16px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* --- Judge Portal --- */
.ida-judge-portal-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
}

.portal-header {
    border-bottom: 2px solid #333;
    padding-bottom: 16px;
    margin-bottom: 32px;
}

.portal-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin: 0 0 8px;
    color: #222;
}

.portal-header p {
    margin: 0;
    color: #555;
}

.contestant-eval-block {
    background: #fcfcfc;
    border: 1px solid #ddd;
    padding: 24px;
    border-radius: 6px;
    margin-bottom: 32px;
}

.block-metadata {
    background: #f0f0f0;
    padding: 14px 18px;
    margin: -24px -24px 20px;
    border-radius: 6px 6px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.block-metadata h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin: 0;
    color: #222;
}

.block-metadata span {
    font-weight: 600;
    background: #fff;
    border: 1px solid #bbb;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.85rem;
}

.category-judging-segment {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 4px;
}

.category-judging-segment h4 {
    margin-top: 0;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #c69c6d;
}

.asset-inspection-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.asset-box span {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.asset-box img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

.asset-box video {
    width: 100%;
    max-height: 200px;
    background: #000;
    border-radius: 3px;
    display: block;
}

.asset-placeholder {
    background: #f9f9f9;
    border: 1px dashed #ccc;
    height: 120px;
    line-height: 120px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    border-radius: 3px;
}

.ida-judge-scoring-form {
    background: #fafafa;
    padding: 16px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.scoring-input-flex {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
}

.scoring-input-flex > div {
    flex: 1;
}

.scoring-input-flex label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.scoring-input-flex input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.95rem;
}

.notes-block {
    margin-bottom: 14px;
}

.notes-block label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.notes-block textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    resize: vertical;
}

.ida-btn-score {
    background: #c69c6d;
    border-color: #c69c6d;
    color: #fff;
    padding: 8px 16px;
    font-size: 12px;
}

.ida-btn-score:hover {
    background: transparent;
    color: #c69c6d;
}

.form-feedback-status {
    margin-left: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Login --- */
.ida-login-wrap {
    max-width: 400px;
    margin: 0 auto;
    padding: 32px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-family: 'Montserrat', sans-serif;
}

.ida-login-wrap h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: #222;
}

.ida-login-links {
    margin-top: 16px;
    font-size: 0.85rem;
    text-align: center;
}

.ida-login-links a {
    color: #c69c6d;
    text-decoration: none;
}

.ida-login-links a:hover {
    text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .ida-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .ida-dash-grid {
        grid-template-columns: 1fr;
    }

    .ida-media-row {
        grid-template-columns: 1fr;
    }

    .asset-inspection-row {
        grid-template-columns: 1fr;
    }

    .scoring-input-flex {
        flex-direction: column;
    }

    .ida-dash-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .block-metadata {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

