/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
.portal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #FF5252;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 32px;
    width: auto;
}

.nav-brand a {
    color: #FF5252;
    text-decoration: none;
    font-weight: 600;
}

.nav-brand a:hover {
    text-decoration: underline;
}

.nav-title h2 {
    color: #333;
    margin: 0;
    font-size: 1.5rem;
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.nav-link {
    color: #666;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background: #FF5252;
    color: white;
}

.test-btn {
    background: #28a745 !important;
    color: white !important;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.test-btn:hover {
    background: #218838 !important;
    color: white !important;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    background: linear-gradient(135deg, #FF5252 0%, #E53935 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 82, 82, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.vodafone-logo {
    height: 80px;
    width: auto;
    border-radius: 12px;
    /* Removed filter to show original logo colors */
}

.configured-logo {
    height: 80px;
    width: auto;
    max-width: 200px;
    border-radius: 8px;
    object-fit: contain;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo Section */
.logo-section {
    text-align: left;
    margin-bottom: 20px;
    padding: 15px 0;
}

.logo-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.company-logo {
    height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-text {
    text-align: left;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Mobile responsive header */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .vodafone-logo {
        height: 60px;
    }
    
    .header-text {
        text-align: center;
    }
    
    /* Mobile responsive logo */
    .logo-section {
        margin-bottom: 15px;
        padding: 10px 0;
    }
    
    .company-logo {
        height: 45px;
        max-width: 200px;
        padding: 8px 12px;
    }
}

/* Token Section */
.token-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border-left: 4px solid #FF5252;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.token-section h3 {
    color: #FF5252;
    margin-bottom: 15px;
    font-weight: 600;
}

.token-input {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.token-input input {
    flex: 1;
    min-width: 250px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.token-input input:focus {
    outline: none;
    border-color: #FF5252;
}

.token-input button {
    padding: 10px 20px;
    background: #FF5252;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.token-input button:hover {
    background: #E53935;
}

.token-input button:last-child {
    background: #666;
}

.token-input button:last-child:hover {
    background: #555;
}

/* Form Section */
.form-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-section h2 {
    color: #FF5252;
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 1.8rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

/* Checkbox styling */
.form-group label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    margin-bottom: 0;
    vertical-align: middle;
    transform: scale(1.2);
    accent-color: #FF5252;
}

.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
    font-weight: 400;
    padding: 8px 0;
}

.form-group label:has(input[type="checkbox"]):hover {
    color: #FF5252;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

/* Override width for checkboxes */
.form-group input[type="checkbox"] {
    width: auto;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF5252;
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Order Summary */
.order-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e60000;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.order-summary h3 {
    color: #FF5252;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
}

.summary-item.quantity-line {
    color: #666;
    font-size: 14px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #FF5252;
    margin-top: 10px;
}

.summary-note {
    margin-top: 10px;
    color: #666;
    font-style: italic;
}

.order-summary hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 15px 0;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #FF5252 0%, #E53935 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #E53935 0%, #D32F2F 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 82, 82, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Test Data Button */
.test-data-btn {
    background: linear-gradient(135deg, #666 0%, #555 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    margin-right: 10px;
}

.test-data-btn:hover {
    background: linear-gradient(135deg, #555 0%, #444 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Status Messages */
.status, .status-display {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-weight: 500;
}

.status.success, .status-display.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.error, .status-display.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status.info, .status-display.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status.loading, .status-display.loading {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Hidden by default */
.status-display {
    display: none;
}

.status-display.show {
    display: block;
}

/* Enhanced success message styling */
.status-display.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 3px solid #27ae60;
    color: #155724;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
    animation: successSlideIn 0.6s ease-out;
    position: relative;
    z-index: 9999;
    margin: 20px 0;
    transform: scale(1);
}

.status-display.success h3 {
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    margin: 0 0 15px 0 !important;
}

.status-display.success p {
    font-size: 1.1rem;
    margin: 10px 0 !important;
    font-weight: 500;
}

.status-display.success .workflow-details {
    background: rgba(255,255,255,0.8);
    border: 2px solid rgba(39, 174, 96, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    backdrop-filter: blur(5px);
    font-size: 1rem;
}

.status-display.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
        box-shadow: 0 0 0 rgba(39, 174, 96, 0);
    }
    50% {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 12px 30px rgba(39, 174, 96, 0.4);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
    }
}

@keyframes successFlash {
    0%, 100% { 
        background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
        transform: scale(1);
    }
    25% { 
        background: linear-gradient(135deg, #c3e6cb 0%, #a3d9a4 100%);
        transform: scale(1.02);
    }
    50% { 
        background: linear-gradient(135deg, #a3d9a4 0%, #d4edda 100%);
        transform: scale(1);
    }
    75% { 
        background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
        transform: scale(1.01);
    }
}

/* Enhanced error styling for consistency */
.status-display.error {
    animation: errorShake 0.5s ease-out;
}

@keyframes errorShake {
    0%, 20%, 50%, 80%, 100% { transform: translateX(0); }
    10% { transform: translateX(-5px); }
    30% { transform: translateX(5px); }
    70% { transform: translateX(-3px); }
    90% { transform: translateX(3px); }
}

/* Loading animation enhancement */
.status-display.loading {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #856404;
    animation: loadingPulse 1.5s infinite;
}

@keyframes loadingPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .token-input {
        flex-direction: column;
    }
    
    .token-input input {
        min-width: 100%;
    }
    
    .form-section {
        padding: 20px;
    }
}

/* Loading animation */
.loading::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Landing Page Styles */
.landing-section {
    margin-bottom: 40px;
}

.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.use-case-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 82, 82, 0.2);
    border-color: #FF5252;
}

.use-case-card.admin-card {
    border-left: 4px solid #666;
}

.use-case-card.admin-card:hover {
    border-color: #666;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.use-case-card h3 {
    color: #FF5252;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.use-case-card.admin-card h3 {
    color: #666;
}

.use-case-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
    text-align: left;
}

.card-features span {
    color: #333;
    font-size: 14px;
}

.card-btn {
    background: linear-gradient(135deg, #FF5252 0%, #E53935 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.card-btn:hover {
    background: linear-gradient(135deg, #E53935 0%, #D32F2F 100%);
}

.card-btn.admin-btn {
    background: linear-gradient(135deg, #666 0%, #555 100%);
}

.card-btn.admin-btn:hover {
    background: linear-gradient(135deg, #555 0%, #444 100%);
}

/* Workflow Status Tile - Full Width */
.workflow-status-tile {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 5px solid #FF5252;
}

.workflow-status-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.status-tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.status-tile-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.status-badge {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-tile-content {
    margin-bottom: 25px;
}

.status-tile-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.status-preview {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #FF5252;
}

.status-item-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workflow-name {
    font-weight: 500;
    color: #333;
}

.workflow-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.workflow-status.pending {
    background: #fff3cd;
    color: #856404;
}

.workflow-status.running {
    background: #cce5ff;
    color: #0056b3;
}

.workflow-status.completed {
    background: #d4edda;
    color: #155724;
}

.workflow-status.failed {
    background: #f8d7da;
    color: #721c24;
}

.status-btn {
    width: auto !important;
    padding: 12px 25px !important;
    font-size: 1rem !important;
}

/* Status Section */
.status-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.status-section h3 {
    color: #FF5252;
    margin-bottom: 20px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.status-label {
    font-weight: 600;
    color: #333;
}

.status-value {
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.status-value.status-success {
    background: #d4edda;
    color: #155724;
}

.status-value.status-error {
    background: #f8d7da;
    color: #721c24;
}

.status-value.status-loading {
    background: #fff3cd;
    color: #856404;
}

/* Back Navigation */
.back-nav {
    margin-bottom: 20px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.back-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    text-decoration: none;
    color: white;
}

/* Workflow Status Page Styles */
.status-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-left: 4px solid #ccc;
}

.summary-card h3 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    color: #333;
}

.summary-card p {
    margin: 0;
    color: #666;
    font-weight: 500;
}

.summary-card.running {
    border-left-color: #0056b3;
}

.summary-card.running h3 {
    color: #0056b3;
}

.summary-card.completed {
    border-left-color: #28a745;
}

.summary-card.completed h3 {
    color: #28a745;
}

.summary-card.failed {
    border-left-color: #dc3545;
}

.summary-card.failed h3 {
    color: #dc3545;
}

.workflow-actions {
    display: flex;
    gap: 10px;
}

.workflow-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.workflow-table th,
.workflow-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.workflow-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
}

.workflow-table tr:hover {
    background-color: #f8f9fa;
}

.workflow-id code {
    background: #f1f3f4;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
}

.status-row.completed {
    border-left: 3px solid #28a745;
}

.status-row.failed {
    border-left: 3px solid #dc3545;
}

.status-row.running {
    border-left: 3px solid #0056b3;
}

.status-row.pending {
    border-left: 3px solid #ffc107;
}

.task-btn.small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.api-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.api-info h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.api-info code {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.api-info pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 10px 0 0 0;
    font-size: 0.9rem;
}

/* Admin Page Styles */
.status-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.status-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.test-btn {
    background: #FF5252;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.test-btn:hover {
    background: #E53935;
}

.config-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.action-btn {
    background: #FF5252;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.action-btn:hover {
    background: #E53935;
}

.action-btn.danger {
    background: #dc3545;
}

.action-btn.danger:hover {
    background: #c82333;
}

.token-info {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #FF5252;
}

.token-info small {
    color: #666;
    line-height: 1.5;
}

/* Debug Output */
.debug-output {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    border-left: 4px solid #17a2b8;
}

.debug-output h4 {
    color: #17a2b8;
    margin-bottom: 15px;
}

.debug-output pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    white-space: pre-wrap;
}

/* Form Section Headers */
.form-section-header {
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e60000;
}

.form-section-header h3 {
    color: #FF5252;
    margin: 0;
    font-size: 1.3rem;
}

/* Form Rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .portal-nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-actions {
        justify-content: center;
    }
    
    .use-cases {
        grid-template-columns: 1fr;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .config-actions {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Radio button group styling */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    background: #f9f9f9;
}

.radio-option:hover {
    border-color: #FF5252;
    background: #fff;
}

.radio-option input[type="radio"] {
    margin: 0;
    margin-top: 2px;
    transform: scale(1.2);
    accent-color: #FF5252;
    flex-shrink: 0;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.radio-option input[type="radio"]:focus,
.radio-option input[type="radio"]:focus-visible,
.radio-option input[type="radio"]:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.radio-option input[type="radio"]:checked {
    outline: none !important;
    box-shadow: none !important;
}

/* Use JavaScript to handle checked state instead of CSS :has() */
.radio-option.selected {
    border-color: #FF5252;
    background: #fff;
}

.radio-option input[type="radio"]:checked + span {
    font-weight: 600;
    color: #FF5252;
}

.radio-option span {
    display: block;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.radio-option small {
    display: block;
    color: #666;
    font-size: 14px;
    margin-top: 4px;
    line-height: 1.3;
}

/* Tasks Page Styling */
.task-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #666;
    font-size: 14px;
}

.filter-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    min-width: 140px;
    font-weight: 500;
    color: #333;
}

.filter-group select {
    flex: 1;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 14px;
}

.task-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.task-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.task-title {
    flex: 1;
}

.task-title h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 18px;
}

.task-type {
    color: #888;
    font-size: 14px;
    font-style: italic;
}

.assignee-name {
    font-weight: 600;
    color: #FF5252;
}

/* Document Info Styles */
.document-info-btn {
    background: linear-gradient(135deg, #FF5252 0%, #E53935 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 82, 82, 0.2);
}

.document-info-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #E53935 0%, #D32F2F 100%);
    box-shadow: 0 4px 8px rgba(255, 82, 82, 0.3);
    transform: translateY(-1px);
}

.document-info-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.document-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #FF5252;
}

.attribute-groups {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
}

.attribute-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.attribute-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.attribute-group h6 {
    color: #FF5252;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.attribute-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.attribute-item:last-child {
    border-bottom: none;
}

.attribute-label {
    font-weight: 600;
    color: #333;
    min-width: 140px;
}

.attribute-value {
    flex: 1;
    text-align: right;
    color: #666;
    font-family: monospace;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 15px;
}

#documentInfoDisplay h4 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e60000;
}

#documentInfoDisplay h5 {
    color: #FF5252;
    font-weight: 600;
    margin-bottom: 10px;
}

.task-badges {
    display: flex;
    gap: 8px;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.priority-high {
    background: #ff4757;
    color: white;
}

.badge.priority-normal {
    background: #3742fa;
    color: white;
}

.badge.priority-low {
    background: #70a1ff;
    color: white;
}

.badge.status-pending {
    background: #ffa502;
    color: white;
}

.badge.status-in-progress {
    background: #2ed573;
    color: white;
}

.badge.status-completed {
    background: #5f27cd;
    color: white;
}

.badge.routing-modify {
    background: #ff6b6b;
    color: white;
}

.task-details {
    margin-bottom: 15px;
}

.task-info {
    display: flex;
    margin-bottom: 8px;
}

.info-label {
    font-weight: 600;
    color: #666;
    min-width: 80px;
    margin-right: 10px;
}

.info-value {
    color: #333;
    flex: 1;
}

.task-actions {
    display: flex;
    gap: 10px;
}

.task-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.task-btn.primary {
    background: #FF5252;
    color: white;
}

.task-btn.primary:hover {
    background: #E53935;
}

.task-btn.secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.task-btn.secondary:hover {
    background: #e8e8e8;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

.empty-state p {
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* API Demo Styles */
.api-demo-section {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.api-demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.2s ease;
    font-weight: 600;
}

.api-demo-header:hover {
    background: #e9ecef;
}

.api-demo-header::-webkit-details-marker {
    display: none;
}

.api-demo-title {
    color: #333;
    font-size: 1rem;
}

.api-demo-badge {
    background: #e74c3c;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.api-demo-badge.get-badge {
    background: #27ae60;
}

.api-demo-content {
    padding: 0;
    background: white;
}

.api-demo-block {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
}

.api-demo-block:last-child {
    border-bottom: none;
}

.api-demo-block h4 {
    margin: 0 0 0.75rem 0;
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.api-demo-block code {
    display: block;
    background: #f8f9fa;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #495057;
    word-break: break-all;
    overflow-x: auto;
}

.api-demo-code {
    background: #1e1e1e !important;
    color: #d4d4d4 !important;
    border: none;
    border-radius: 6px;
    padding: 1.25rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    margin: 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

/* Postman-style JSON and XML syntax highlighting */
.postman-style {
    background: #1e1e1e !important;
    color: #d4d4d4 !important;
    border: 1px solid #333 !important;
}

.api-demo-code.postman-style .json-key,
.postman-style .json-key {
    color: #9cdcfe !important;
    font-weight: 600 !important;
}

.api-demo-code.postman-style .json-string,
.postman-style .json-string {
    color: #ce9178 !important;
}

.api-demo-code.postman-style .xml-tag,
.postman-style .xml-tag {
    color: #569cd6 !important;
    font-weight: 500 !important;
}

.api-demo-code.postman-style .xml-content,
.postman-style .xml-content {
    color: #b5cea8 !important;
    font-weight: 400 !important;
}

/* Dark theme for JSON */
.api-demo-code {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .api-demo-header {
        padding: 0.75rem 1rem;
    }
    
    .api-demo-block {
        padding: 0.75rem 1rem;
    }
    
    .api-demo-code {
        font-size: 0.75rem;
        padding: 0.75rem;
    }
    
    .api-demo-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Task Button Styles - All buttons consistent */

 