/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/CascadeStyleSheet.css to edit this template
*/
/* 
    Created on : 21 Apr 2026, 8:29:10 am
    Author     : danis
*/

/* ==========================================================================
   ICPRC Global Stylesheet
   Theme: Modern Tech Laboratory (Clean Slate, Teal & Cyan Accents)
   ========================================================================== */

/* Google Font Integration for a modern tech feel */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;

    /* Branding Colors (Chemistry/Tech Vibe) */
    --brand-dark: #0f172a;
    --brand-teal: #0d9488;
    --brand-teal-hover: #115e59;
    --brand-cyan: #06b6d4;
    --brand-cyan-light: #ecfeff;

    /* System Statuses */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Utilities */
    --radius-sm: 6px;
    --radius-md: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --transition: all 0.2s ease-in-out;
}

/* General Layout Reset */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Typography */
h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-top: 0;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

/* Forms & Elements */
label {
    display: block;
    margin-top: 16px;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* Added email and password here so they get styled */
input[type="text"], input[type="email"], input[type="password"], select, textarea {
    width: 100%;
    padding: 10px 14px;
    margin-top: 6px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    box-sizing: border-box;
    transition: var(--transition);
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

/* Laboratory Steps Box */
.step-box {
    margin-top: 20px;
    padding: 20px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    background: #fdfdfd;
    transition: var(--transition);
}
.step-box:hover {
    border-color: var(--brand-cyan);
    background: var(--brand-cyan-light);
}

/* Redesigned Buttons */
button {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

button:active {
    transform: translateY(1px);
}

.btn-add {
    background-color: var(--brand-cyan);
    color: white;
}
.btn-add:hover {
    background-color: #0891b2;
}

.btn-submit {
    background-color: var(--brand-teal);
    color: white;
}
.btn-submit:hover {
    background-color: var(--brand-teal-hover);
}

/* Analytics Dashboard Grid & Material Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.card {
    padding: 20px;
    border-radius: var(--radius-md);
    color: white;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

/* Modernized Grid Colors */
.blue   {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}
.yellow {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}
.green  {
    background: linear-gradient(135deg, #10b981, #059669);
}
.purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Data Tables */
.table-container {
    margin-top: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    background-color: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.92rem;
    color: #334155;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #f8fafc;
}

/* Lab Characterization Monitoring Status Badges */
.status {
    padding: 4px 10px;
    border-radius: 50px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: inline-block;
}

.status.green  {
    background-color: var(--success);
}
.status.yellow {
    background-color: var(--warning);
    color: #78350f;
}
.status.red    {
    background-color: var(--danger);
}
.status.gray   {
    background-color: var(--text-muted);
}

/* Scientific Dark Sidebar */
.sidebar {
    width: 260px;
    min-height: 100vh;
    background: #0f172a; /* Deep Slate */
    color: white;
    padding: 30px 24px;
    box-sizing: border-box;
    border-right: 1px solid #1e293b;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

/* Subtle accent block for system identity */
.logo::after {
    content: 'SYS';
    font-size: 0.65rem;
    background: var(--brand-cyan);
    color: #0f172a;
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 800;
}

.user-info {
    font-size: 0.85rem;
    margin-bottom: 32px;
    color: #94a3b8;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 16px;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    margin: 8px 0;
}

.menu li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.menu li a:hover {
    color: #ffffff;
    background-color: #1e293b;
}

/* Main Workspace Content Area */
.content {
    flex: 1;
    padding: 40px;
    background-color: var(--bg-main);
    box-sizing: border-box;
}

.main-box {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

/* Modern Scientific Login Portal */
.login-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.login-box {
    width: 380px;
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 8px;
    color: var(--brand-dark);
}

/* Subtle subtitle context under the login title */
.login-box::before {
    content: "ICPRC Portal Secure Access";
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.error {
    color: var(--danger);
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 16px;
    font-weight: 500;
}

/* ==========================================================================
   Experiment Management Enhancements
   ========================================================================== */

.section-subtitle {
    color: var(--text-muted);
    margin-top: -16px;
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.form-container-box {
    max-width: 660px;
    margin-bottom: 32px;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.form-group {
    width: 100%;
}

.procedure-heading {
    margin: 28px 0 12px;
    font-size: 1.1rem;
    color: var(--brand-dark);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
}

/* Step UI Overhaul */
#steps .step-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

#steps .step-box label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--brand-dark);
}

#steps .step-box textarea {
    margin-top: 8px;
    margin-bottom: 12px;
}

.file-input-label {
    display: block;
    margin-top: 14px;
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.file-input {
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Step Inline Image Previews */
.current-assets-container {
    margin-top: 12px;
    padding: 10px 14px;
    background-color: var(--bg-main);
    border-radius: var(--radius-sm);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.asset-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.step-img-thumbnail {
    height: 44px;
    width: 44px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.step-img-thumbnail:hover {
    transform: scale(1.05);
    border-color: var(--brand-cyan);
}

.document-asset-link {
    font-size: 0.85rem;
    color: var(--brand-teal);
    text-decoration: none;
    font-weight: 500;
}

.asset-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Action Buttons & Alignment */
.btn-small {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.form-actions-row {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-secondary {
    background-color: var(--text-muted);
    color: white;
}
.btn-secondary:hover {
    background-color: #475569;
}

.btn-cancel {
    background-color: #e2e8f0;
    color: #334155;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}
.btn-cancel:hover {
    background-color: #cbd5e1;
}

/* Dynamic Delete Button Inside Step Block */
.delete-step-btn {
    float: right;
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 12px;
}
.delete-step-btn:hover {
    background: #dc2626;
}

/* Alerts layout refinement */
.status-alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}
.success-alert {
    background-color: #ecfeff;
    border: 1px solid #a5f3fc;
    color: #0369a1;
}
.info-alert {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

/* List Actions Layout styling */
.list-actions-wrapper {
    display: flex;
    gap: 6px;
    justify-content: center;
}
.btn-edit-list {
    background: var(--brand-dark);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.btn-edit-list:hover {
    background: #1e293b;
}
.btn-submit-list {
    background: var(--brand-teal);
    color: white;
    padding: 4px 10px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
    box-shadow: none;
}
.btn-submit-list:hover {
    background: var(--brand-teal-hover);
}
.text-disabled {
    color: #cbd5e1;
}
.table-summary-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 10px;
}
.accent-link {
    color: var(--brand-cyan);
    font-weight: 600;
    text-decoration: none;
}
.accent-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Research Repository Component Styles
   ========================================================================== */

.repo-table-container {
    max-width: 1060px;
}

/* Repository Status Badge Enhancements */
.type-badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-block;
}

.purple-badge {
    background-color: #f3e8ff;
    color: #6b21a8;
    border: 1px solid #e9d5ff;
}

.green-badge {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #d1fae5;
}

/* Secondary table text configurations */
.td-secondary-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.td-date-text {
    color: var(--text-muted);
    font-family: monospace;
    font-size: 0.85rem;
}

.text-truncate {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Download Action Button Styling */
.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-dark);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.775rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-download:hover {
    background-color: #1e293b;
    transform: translateY(-0.5px);
}

/* Clean Empty State Display */
.empty-state-box {
    padding: 50px 30px;
    text-align: center;
    background-color: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    max-width: 1060px;
    box-sizing: border-box;
}

.empty-icon {
    font-size: 42px;
    margin-bottom: 14px;
    opacity: 0.8;
}

.empty-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0 0 6px 0;
}

.empty-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   Characterization Detail & Verification Panels
   ========================================================================== */

.detail-workspace-box {
    max-width: 1060px;
}

.back-navigation-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.825rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 24px;
    font-weight: 500;
    transition: var(--transition);
}
.back-navigation-link:hover {
    color: var(--brand-dark);
}

/* Metadata Profile Card Layout */
.metadata-profile-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.profile-details-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.profile-primary-info h2 {
    margin: 0 0 6px 0 !important;
    font-size: 1.25rem !important;
}

.profile-secondary-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.profile-secondary-text strong {
    color: var(--brand-dark);
}

.text-separator {
    color: var(--border-color);
    margin: 0 8px;
}

.profile-tertiary-text {
    margin: 8px 0 0 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.monospace-filename {
    font-family: monospace;
    background-color: var(--bg-main);
    padding: 2px 6px;
    border-radius: 4px;
    color: #334155;
}

.profile-status-badge {
    align-self: center;
    font-family: monospace;
    white-space: nowrap;
}

/* File Viewer Rendering Elements */
.preview-section-title {
    font-size: 1.1rem;
    color: var(--brand-dark);
    margin-bottom: 16px;
}

.render-preview-wrapper {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.rendered-image-element {
    max-width: 100%;
    max-height: 520px;
    object-fit: contain;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.rendered-image-element:hover {
    box-shadow: var(--shadow-md);
}

.rendered-pdf-element {
    width: 100%;
    height: 560px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.preview-hint-text {
    margin: 14px 0 0 0;
    font-size: 0.825rem;
    color: var(--text-muted);
}

/* Placeholder for unsupported file downloads */
.unsupported-file-placeholder {
    padding: 32px;
}

.unsupported-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.unsupported-title {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.btn-download-fallback {
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

/* Decision Evaluation Box Styles */
.decision-card-panel {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 12px;
    box-shadow: var(--shadow-sm);
}

.panel-heading {
    margin: 0 0 6px 0;
    font-size: 1.05rem;
    color: var(--brand-dark);
}

.panel-subheading {
    margin: 0 0 20px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.decision-actions-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.btn-action-approve {
    background-color: var(--brand-teal) !important;
    padding: 12px 28px !important;
    font-size: 0.9rem !important;
}
.btn-action-approve:hover {
    background-color: var(--brand-teal-hover) !important;
}

.rejection-evaluation-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 280px;
}

.rejection-evaluation-form textarea {
    margin-top: 0 !important;
}

.btn-action-reject {
    background-color: var(--danger);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: inherit;
    align-self: flex-start;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.btn-action-reject:hover {
    background-color: #dc2626;
}

.btn-action-publish {
    background-color: #7c3aed;
    color: white;
    border: none;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: inherit;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.btn-action-publish:hover {
    background-color: #6d28d9;
}

/* Additional Custom Warning Banners */
.publish-alert {
    background-color: #f5f3ff;
    border: 1px solid #ddd6fe;
    color: #5b21b6;
}
.danger-alert {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

/* ==========================================================================
   Experiment Detail Sequence Viewer & Gallery Layouts
   ========================================================================== */

.clear-card-placeholder {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Master procedure item card */
.procedure-step-card-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.step-card-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

/* Numbered bullet target styling */
.step-badge-counter-circle {
    width: 32px;
    height: 32px;
    background: var(--brand-dark);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-inline-title {
    margin: 0;
    font-size: 0.95rem;
    color: var(--brand-dark);
    font-weight: 600;
}

/* Chemical layout narrative narrative textblock */
.step-narrative-description-block {
    margin: 0 0 16px 0;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.7;
    background: var(--bg-main);
    border-left: 3.5px solid var(--brand-dark);
    padding: 12px 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Gallery and Card wrappers */
.step-asset-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 4px;
}

.gallery-asset-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-main);
    text-align: center;
    box-shadow: var(--shadow-sm);
    max-width: 202px;
}

.gallery-image-anchor {
    display: block;
}

.gallery-image-element {
    width: 200px;
    height: 140px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: var(--transition);
}
.gallery-image-element:hover {
    opacity: 0.9;
}

.gallery-filename-text {
    margin: 6px 8px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: monospace;
    max-width: 184px;
}

/* Document file type cell indicators */
.gallery-document-fallback-container {
    padding: 20px 24px;
    width: 150px;
    box-sizing: border-box;
}

.fallback-doc-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.gallery-filename-link-text {
    display: block;
    font-size: 0.725rem;
    color: var(--brand-cyan);
    font-family: monospace;
    text-decoration: none;
    font-weight: 600;
}
.gallery-filename-link-text:hover {
    text-decoration: underline;
}

.asset-missing-italic-hint {
    margin: 0;
    font-size: 0.825rem;
    color: var(--text-disabled);
    font-style: italic;
}