:root {
    --alm-orange: #E38219;
    --alm-orange-hover: #c87113;
    --alm-dark: #1E293B;
    --alm-dark-light: #334155;
    --alm-light: #F8FAFC;
    --alm-text: #0F172A;
    --alm-text-muted: #64748B;
    --alm-border: #E2E8F0;
    --alm-white: #FFFFFF;
    --alm-success: #10B981;
    --alm-warning: #F59E0B;
    --alm-danger: #EF4444;
    --alm-glow: rgba(227, 130, 25, 0.15);
    --alm-radius: 12px;
    --alm-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --alm-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.alm-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--alm-text);
    background-color: var(--alm-light);
    border-radius: var(--alm-radius);
    padding: 24px;
    box-shadow: var(--alm-shadow);
    margin-bottom: 30px;
}

/* Glassmorphism Panel */
.alm-panel {
    background: var(--alm-white);
    border: 1px solid var(--alm-border);
    border-radius: var(--alm-radius);
    padding: 30px;
    box-shadow: var(--alm-shadow-lg);
}

/* Header Branding */
.alm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--alm-orange);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.alm-header-title h2 {
    margin: 0;
    color: var(--alm-dark);
    font-size: 24px;
    font-weight: 700;
}

.alm-header-title p {
    margin: 5px 0 0 0;
    color: var(--alm-text-muted);
}

.alm-logo img {
    max-height: 60px;
}

/* Steps Indicator */
.alm-steps-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.alm-steps-line {
    position: absolute;
    top: 20px;
    left: 4%;
    right: 4%;
    height: 3px;
    background-color: var(--alm-border);
    z-index: 1;
}

.alm-steps-progress {
    position: absolute;
    top: 20px;
    left: 4%;
    height: 3px;
    background-color: var(--alm-orange);
    z-index: 2;
    transition: width 0.3s ease;
    width: 0%;
}

.alm-step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
    width: 16%;
    cursor: pointer;
}

.alm-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--alm-white);
    border: 3px solid var(--alm-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--alm-text-muted);
    transition: all 0.3s ease;
}

.alm-step-node.active .alm-step-circle {
    border-color: var(--alm-orange);
    color: var(--alm-orange);
    box-shadow: 0 0 0 4px var(--alm-glow);
}

.alm-step-node.completed .alm-step-circle {
    background-color: var(--alm-orange);
    border-color: var(--alm-orange);
    color: var(--alm-white);
}

.alm-step-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--alm-text-muted);
    text-align: center;
}

.alm-step-node.active .alm-step-label,
.alm-step-node.completed .alm-step-label {
    color: var(--alm-dark);
}

/* Wizard Forms */
.alm-wizard-step {
    display: none;
}

.alm-wizard-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alm-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--alm-dark);
    border-left: 4px solid var(--alm-orange);
    padding-left: 10px;
}

/* Form Fields */
.alm-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.alm-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.alm-form-group.full-width {
    width: 100%;
}

.alm-form-group label {
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: var(--alm-dark);
}

.alm-form-group label span.required {
    color: var(--alm-danger);
}

.alm-form-control {
    padding: 10px 14px;
    border: 1px solid var(--alm-border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: var(--alm-white);
    color: var(--alm-text);
}

.alm-form-control:focus {
    outline: none;
    border-color: var(--alm-orange);
    box-shadow: 0 0 0 3px var(--alm-glow);
}

textarea.alm-form-control {
    min-height: 120px;
    resize: vertical;
}

.alm-radio-group {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.alm-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.alm-radio-label input {
    margin-right: 6px;
    accent-color: var(--alm-orange);
}

/* Buttons */
.alm-footer-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    border-top: 1px solid var(--alm-border);
    padding-top: 20px;
}

.alm-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.alm-btn-primary {
    background-color: var(--alm-orange);
    color: var(--alm-white);
}

.alm-btn-primary:hover {
    background-color: var(--alm-orange-hover);
}

.alm-btn-secondary {
    background-color: var(--alm-white);
    border-color: var(--alm-border);
    color: var(--alm-dark-light);
}

.alm-btn-secondary:hover {
    background-color: var(--alm-light);
}

.alm-btn-success {
    background-color: var(--alm-success);
    color: var(--alm-white);
}

.alm-btn-success:hover {
    background-color: #0d9488;
}

/* File Upload Wrapper */
.alm-file-upload {
    border: 2px dashed var(--alm-border);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    background-color: var(--alm-light);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.alm-file-upload:hover {
    border-color: var(--alm-orange);
    background-color: var(--alm-glow);
}

.alm-file-upload-icon {
    font-size: 32px;
    color: var(--alm-text-muted);
    margin-bottom: 10px;
}

.alm-file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.alm-uploaded-file-info {
    margin-top: 10px;
    font-size: 13px;
    color: var(--alm-success);
    font-weight: 600;
}

/* Signature Pad */
.alm-signature-pad-container {
    width: 100%;
    max-width: 450px;
    border: 1px solid var(--alm-border);
    border-radius: 8px;
    background-color: var(--alm-white);
    padding: 10px;
    margin-top: 10px;
}

.alm-signature-canvas {
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    cursor: crosshair;
    background-color: #FAFAFA;
}

.alm-signature-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

/* Assessor Feedback Display Box */
.alm-feedback-alert {
    background-color: #FEF3C7;
    border-left: 4px solid var(--alm-warning);
    color: #92400E;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 25px;
}

.alm-feedback-alert h4 {
    margin: 0 0 5px 0;
    font-weight: 700;
    font-size: 15px;
}

.alm-feedback-alert p {
    margin: 0;
    font-size: 14px;
}

/* Revision History Timeline */
.alm-revisions-section {
    margin-top: 40px;
    border-top: 1px solid var(--alm-border);
    padding-top: 30px;
}

.alm-revision-timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 20px;
}

.alm-revision-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 9px;
    width: 2px;
    background-color: var(--alm-border);
}

.alm-revision-item {
    position: relative;
    margin-bottom: 25px;
}

.alm-revision-badge {
    position: absolute;
    left: -30px;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--alm-border);
    border: 3px solid var(--alm-white);
    z-index: 2;
}

.alm-revision-item.current .alm-revision-badge {
    background-color: var(--alm-orange);
}

.alm-revision-content {
    background-color: var(--alm-white);
    border: 1px solid var(--alm-border);
    border-radius: 8px;
    padding: 15px;
    font-size: 13px;
}

.alm-revision-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: bold;
}

.alm-revision-date {
    color: var(--alm-text-muted);
}

/* Dashboard Table */
.alm-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.alm-table th,
.alm-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--alm-border);
}

.alm-table th {
    background-color: var(--alm-dark);
    color: var(--alm-white);
    font-weight: 600;
}

.alm-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.alm-status-draft { background-color: #E2E8F0; color: #475569; }
.alm-status-submitted { background-color: #DBEAFE; color: #1E40AF; }
.alm-status-modification_requested { background-color: #FEF3C7; color: #92400E; }
.alm-status-accepted { background-color: #D1FAE5; color: #065F46; }
.alm-status-rejected { background-color: #FEE2E2; color: #991B1B; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .alm-form-row {
        flex-direction: column;
        gap: 0;
    }
    .alm-steps-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    .alm-step-node {
        width: 30%;
    }
    .alm-steps-line, .alm-steps-progress {
        display: none;
    }
}
