/* ═══════════════════════════════════════════
   Thesis Progress – Public (Student) Styles
   Author: M.S. Link Nepal
   ═══════════════════════════════════════════ */

/* Wrapper */
.tp-public-wrap {
    max-width: 900px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    color: #1d2327;
}

/* Login box */
.tp-login-box {
    max-width: 420px;
    margin: 60px auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px 36px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.tp-login-box h2 {
    margin-top: 0;
    text-align: center;
    color: #1d2327;
}
.tp-login-box p {
    text-align: center;
    color: #646970;
}
.tp-login-box .login-username,
.tp-login-box .login-password {
    margin-bottom: 14px;
}
.tp-login-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}
.tp-login-box input[type="text"],
.tp-login-box input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}
.tp-login-box input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.tp-login-box input[type="submit"]:hover {
    background: #135e96;
}
.tp-register-link {
    text-align: center;
    margin-top: 16px;
}
.tp-register-link a {
    color: #2271b1;
    font-weight: 600;
}

/* Notice boxes */
.tp-notice {
    padding: 20px 24px;
    border-radius: 6px;
    border: 1px solid #ddd;
}
.tp-notice h3 { margin-top: 0; }
.tp-notice-info  { background: #f0f6fc; border-color: #2271b1; }

/* Header */
.tp-header {
    background: #1d2327;
    color: #fff;
    padding: 20px 24px;
    border-radius: 8px 8px 0 0;
}
.tp-header h2 {
    margin: 0 0 4px;
    color: #fff;
}
.tp-header p {
    margin: 0;
    color: #c3c4c7;
}
.tp-header a {
    color: #72aee6;
}

/* Tabs */
.tp-tabs {
    display: flex;
    background: #f0f0f1;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    overflow-x: auto;
}
.tp-tab {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #646970;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 3px solid transparent;
    transition: all .2s;
    white-space: nowrap;
}
.tp-tab:hover {
    background: #e0e0e0;
    color: #1d2327;
}
.tp-tab.active {
    background: #fff;
    color: #2271b1;
    border-bottom-color: #2271b1;
}

/* Tab content */
.tp-tab-content {
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 24px;
}

/* Overview grid */
.tp-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}
.tp-overview-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
}
.tp-overview-card h4 {
    margin: 0 0 8px;
    color: #646970;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.tp-overview-card p {
    margin: 4px 0;
    font-size: 14px;
}
.tp-card-success { border-left: 4px solid #00a32a; }
.tp-card-warning { border-left: 4px solid #dba617; }

/* Progress bar large */
.tp-progress-bar-lg {
    background: #e0e0e0;
    border-radius: 6px;
    height: 16px;
    width: 100%;
    margin: 8px 0 4px;
}
.tp-progress-bar-lg .tp-progress-fill {
    background: linear-gradient(90deg, #2271b1, #72aee6);
    height: 100%;
    border-radius: 6px;
    transition: width .4s;
}
.tp-progress-text {
    font-size: 20px;
    font-weight: 700;
    color: #2271b1;
}

/* Forms */
.tp-form-row {
    margin-bottom: 16px;
}
.tp-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1d2327;
}
.tp-form-row input[type="text"],
.tp-form-row input[type="email"],
.tp-form-row input[type="number"],
.tp-form-row input[type="date"],
.tp-form-row select,
.tp-form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
}
.tp-form-row textarea {
    resize: vertical;
}
.tp-hint {
    font-size: 12px;
    color: #8c8f94;
    margin-top: 4px;
}

/* Buttons */
.tp-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.tp-btn-primary {
    background: #2271b1;
    color: #fff;
}
.tp-btn-primary:hover {
    background: #135e96;
}

/* Tables */
.tp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.tp-table th {
    background: #f0f0f1;
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}
.tp-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}
.tp-table tr:hover td {
    background: #f9f9f9;
}

/* Badges (reused from admin) */
.tp-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.tp-badge-submitted   { background: #e8f0fe; color: #1a73e8; }
.tp-badge-late        { background: #fce8e6; color: #d93025; }
.tp-badge-missing     { background: #fce8e6; color: #d93025; }
.tp-badge-reviewed    { background: #e6f4ea; color: #137333; }
.tp-badge-revision_needed { background: #fef7e0; color: #b06000; }
.tp-badge-draft       { background: #f1f3f4; color: #5f6368; }
.tp-badge-open        { background: #e8f0fe; color: #1a73e8; }
.tp-badge-in_progress { background: #fef7e0; color: #b06000; }
.tp-badge-completed   { background: #e6f4ea; color: #137333; }
.tp-badge-overdue     { background: #fce8e6; color: #d93025; }
.tp-badge-approved    { background: #e6f4ea; color: #137333; }
.tp-badge-declined    { background: #fce8e6; color: #d93025; }
.tp-badge-scheduled   { background: #e8f0fe; color: #1a73e8; }
.tp-badge-cancelled   { background: #f1f3f4; color: #5f6368; }
.tp-badge-coordinator_review,
.tp-badge-rkd_review  { background: #fef7e0; color: #b06000; }

/* Result message */
#tp-submit-result,
#tp-fv-result {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 4px;
    font-weight: 600;
    display: none;
}
.tp-result-success {
    background: #e6f4ea;
    color: #137333;
    border: 1px solid #c6e6c8;
    display: block !important;
}
.tp-result-error {
    background: #fce8e6;
    color: #d93025;
    border: 1px solid #f5c6c6;
    display: block !important;
}

/* Responsive */
@media (max-width: 600px) {
    .tp-public-wrap { margin: 10px; }
    .tp-tabs { flex-wrap: wrap; }
    .tp-tab { flex: none; width: 50%; }
    .tp-overview-grid { grid-template-columns: 1fr; }
}
