/* App Container */
.wrm-app {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.wrm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 30px 40px;
    border-radius: 20px;
    color: white;
    margin-bottom: 25px;
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.35);
}

.wrm-header-content h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}

.wrm-header-content p {
    margin: 8px 0 0;
    opacity: 0.9;
}

.wrm-date-display {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.15);
    padding: 12px 20px;
    border-radius: 12px;
}

.wrm-date-day {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.wrm-date-details {
    display: flex;
    flex-direction: column;
}

.wrm-date-month {
    font-size: 14px;
    font-weight: 500;
}

.wrm-date-weekday {
    font-size: 12px;
    opacity: 0.8;
}

/* Navigation */
.wrm-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.wrm-nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
}

.wrm-nav-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.wrm-nav-btn.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.wrm-nav-icon {
    font-size: 22px;
}

/* Content */
.wrm-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

.wrm-tab-panel {
    display: none;
    padding: 30px;
}

.wrm-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Totals Bar */
.wrm-totals-bar {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 20px 25px;
    border-radius: 16px;
    margin-bottom: 25px;
}

.wrm-totals-bar h3 {
    margin: 0 0 15px;
    font-size: 15px;
    color: #64748b;
}

.wrm-totals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.wrm-total-item {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.wrm-total-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 5px;
}

.wrm-total-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.wrm-total-complete .wrm-total-value { color: #22c55e; }
.wrm-total-revision .wrm-total-value { color: #f59e0b; }
.wrm-total-disable .wrm-total-value { color: #ef4444; }
.wrm-total-grand .wrm-total-value { 
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wrm-totals-single {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wrm-grand-total {
    text-align: right;
}

.wrm-grand-total-value {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wrm-grand-total-label {
    display: block;
    font-size: 14px;
    color: #64748b;
}

/* Employee List */
.wrm-employee-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.wrm-employee-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 12px;
    transition: background 0.2s, transform 0.2s;
}

.wrm-employee-row:hover {
    background: #f1f5f9;
}

.wrm-employee-row.has-data {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-left: 4px solid #22c55e;
}

.wrm-employee-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.wrm-employee-name {
    width: 140px;
    font-weight: 600;
    color: #334155;
    flex-shrink: 0;
}

.wrm-employee-inputs {
    display: flex;
    gap: 12px;
    flex: 1;
}

.wrm-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wrm-input-group label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
}

.wrm-input {
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    width: 80px;
    text-align: center;
    transition: all 0.2s;
    background: white;
}

.wrm-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.wrm-input-note {
    flex: 1;
}

.wrm-input-note .wrm-input {
    width: 100%;
    text-align: left;
}

.wrm-employee-row-total {
    width: 60px;
    text-align: center;
}

.wrm-row-total-value {
    font-size: 18px;
    font-weight: 700;
    color: #6366f1;
    background: white;
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-block;
}

/* Employee Grid (Account Created) */
.wrm-employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.wrm-employee-card-mini {
    background: #f8fafc;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wrm-employee-card-mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.wrm-employee-card-mini.has-data {
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
}

.wrm-card-mini-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-bottom: 3px solid;
}

.wrm-avatar-mini {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.wrm-name-mini {
    font-weight: 600;
    color: #334155;
}

.wrm-card-mini-body {
    padding: 15px;
}

.wrm-input-wrapper {
    margin-bottom: 12px;
}

.wrm-input-wrapper:last-child {
    margin-bottom: 0;
}

.wrm-input-wrapper label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.wrm-input-center {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    padding: 15px;
}

.wrm-input-sm {
    font-size: 13px;
    padding: 8px 12px;
}

.wrm-input-created {
    width: 100%;
    box-sizing: border-box;
}

/* Single Form (Account Login) */
.wrm-form-single {
    max-width: 600px;
    margin: 0 auto;
}

.wrm-card {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}

.wrm-card-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 30px;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
}

.wrm-card-icon {
    font-size: 48px;
}

.wrm-card-header h2 {
    margin: 0;
    font-size: 22px;
}

.wrm-card-header p {
    margin: 5px 0 0;
    opacity: 0.9;
}

.wrm-card-body {
    padding: 30px;
}

.wrm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.wrm-form-group {
    display: flex;
    flex-direction: column;
}

.wrm-form-group-full {
    grid-column: span 2;
}

.wrm-form-group-highlight {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    padding: 20px;
    border-radius: 12px;
    margin: -10px;
    grid-column: span 2;
}

.wrm-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.wrm-label-icon {
    font-size: 16px;
}

.wrm-select {
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.wrm-select:focus {
    outline: none;
    border-color: #6366f1;
}

.wrm-input-large {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    padding: 20px;
}

.wrm-input-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}

.wrm-textarea {
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    resize: vertical;
    transition: border-color 0.2s;
    font-family: inherit;
}

.wrm-textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.wrm-card-footer {
    padding: 20px 30px;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Submit Section */
.wrm-submit-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #f8fafc;
    border-radius: 14px;
    margin-bottom: 20px;
}

/* Buttons */
.wrm-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wrm-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.wrm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.wrm-btn-outline {
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.wrm-btn-outline:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.wrm-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.wrm-message {
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    display: none;
}

.wrm-message.success {
    display: block;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    border-left: 4px solid #22c55e;
}

.wrm-message.error {
    display: block;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* Empty State */
.wrm-empty-state {
    text-align: center;
    padding: 60px 30px;
}

.wrm-empty-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
}

.wrm-empty-state h3 {
    margin: 0 0 10px;
    color: #334155;
}

.wrm-empty-state p {
    margin: 0;
    color: #64748b;
}

/* Login Notice */
.wrm-login-notice {
    max-width: 500px;
    margin: 60px auto;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 16px;
    border-left: 5px solid #f59e0b;
}

.wrm-login-notice p {
    margin: 0;
    font-size: 16px;
    color: #92400e;
}

.wrm-login-notice a {
    color: #78350f;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
    .wrm-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .wrm-nav {
        flex-direction: column;
    }
    
    .wrm-totals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wrm-employee-row {
        flex-wrap: wrap;
    }
    
    .wrm-employee-inputs {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .wrm-input-group {
        flex: 1;
        min-width: 70px;
    }
    
    .wrm-form-grid {
        grid-template-columns: 1fr;
    }
    
    .wrm-form-group-full,
    .wrm-form-group-highlight {
        grid-column: span 1;
    }
}

@media (max-width: 600px) {
    .wrm-totals-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .wrm-totals-single {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .wrm-grand-total {
        text-align: center;
    }
    
    .wrm-submit-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .wrm-btn {
        width: 100%;
        justify-content: center;
    }
}