/* Standardized CSS for Static HTML Structure */

/* Layout Structure */
.static-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.static-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.static-content {
    flex: 1;
    padding: 2rem 0;
}

.static-footer {
    margin-top: auto;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 0;
}

/* Standardized Component Classes */
.static-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.static-table {
    width: 100%;
    border-collapse: collapse;
}

.static-table th {
    background: #f9fafb;
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

.static-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}

.static-table tbody tr:hover {
    background: #f9fafb;
}

/* Standardized Button Classes */
.static-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.static-btn-primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.static-btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.static-btn-secondary {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
}

.static-btn-secondary:hover {
    background: #4b5563;
    border-color: #4b5563;
}

.static-btn-danger {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.static-btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.static-btn-success {
    background: #059669;
    color: white;
    border-color: #059669;
}

.static-btn-success:hover {
    background: #047857;
    border-color: #047857;
}

/* Standardized Form Classes */
.static-form-group {
    margin-bottom: 1rem;
}

.static-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.static-form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.static-form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Standardized Alert Classes */
.static-alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    border: 1px solid;
}

.static-alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.static-alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.static-alert-warning {
    background: #fffbeb;
    border-color: #fed7aa;
    color: #92400e;
}

.static-alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* Chinese Text Support */
.chinese-text {
    font-family: 'SimSun', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .static-table {
        font-size: 0.75rem;
    }
    
    .static-table th,
    .static-table td {
        padding: 0.5rem 0.75rem;
    }
    
    .static-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Loading States */
.static-loading {
    opacity: 0.6;
    pointer-events: none;
}

.static-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin: -0.5rem 0 0 -0.5rem;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}