
:root {
    --sidebar-width: 380px;
    --header-height: 70px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    overflow-x: hidden;
}

.layout-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    margin-bottom: 2.5rem;
}

.sidebar-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sidebar-header p {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.form-container {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #475569;
    background-color: #334155;
    color: white;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
}

.submit-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: #2563eb;
}

.alert {
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.sidebar-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #475569;
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    overflow-y: auto;
    background-color: #f8fafc;
}

.content-container {
    padding: 2rem;
    max-width: 1200px;
}

.content-header {
    margin-bottom: 2rem;
}

.content-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.content-subtitle {
    color: #64748b;
    font-size: 1rem;
}

/* Card Styles */
.card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

/* Work Order Details */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.active {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge.pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge.completed {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Credential Cards */
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.credential-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

.credential-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.credential-header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.credential-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.credential-icon.website {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.credential-icon.ojs {
    background-color: #d1fae5;
    color: #047857;
}

.credential-icon.cpanel {
    background-color: #f3e8ff;
    color: #7c3aed;
}

.credential-icon.webmail {
    background-color: #fef3c7;
    color: #d97706;
}

.credential-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.credential-description {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.credential-body {
    padding: 0 1.25rem 1.25rem;
}

.credential-field {
    margin-bottom: 1rem;
}

.credential-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 0.25rem;
    display: block;
}

.credential-input-group {
    display: flex;
    gap: 0.5rem;
}

.credential-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background-color: #f8fafc;
}

.copy-btn {
    padding: 0.5rem 0.75rem;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.copy-btn:hover {
    background-color: #e2e8f0;
}

.copy-btn.copied {
    background-color: #10b981;
    color: white;
    border-color: #10b981;
}

/* Security Notice */
.security-notice {
    background-color: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.security-icon {
    color: #d97706;
    flex-shrink: 0;
}

.security-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #92400e;
    margin: 0 0 0.25rem;
}

.security-content p {
    font-size: 0.875rem;
    color: #92400e;
    margin: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-icon {
    width: 4rem;
    height: 4rem;
    color: #cbd5e1;
    margin: 0 auto 1rem;
}

.empty-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.empty-description {
    color: #64748b;
    font-size: 0.875rem;
    max-width: 24rem;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 320px;
    }

    .main-content {
        margin-left: 320px;
    }

    .details-grid,
    .credentials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .layout-container {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .main-content {
        margin-left: 0;
    }
}

.validation-feedback {
    min-height: 1.25rem;
    font-size: 0.875rem;
}

.form-input:invalid {
    border-color: #3b82f6;
}

.form-input:valid {
    border-color: #16a34a;
}