/* Custom User System - Professional Theme */
:root {
    --cus-primary: #1e3a8a; /* Deep Blue */
    --cus-primary-hover: #1e40af;
    --cus-bg: #f8fafc;
    --cus-surface: #ffffff;
    --cus-border: #e2e8f0;
    --cus-text-main: #0f172a;
    --cus-text-muted: #64748b;
    --cus-danger: #ef4444;
    --cus-danger-hover: #dc2626;
    --cus-success-bg: #dcfce7;
    --cus-success-text: #166534;
    --cus-error-bg: #fee2e2;
    --cus-error-text: #991b1b;
    --cus-radius: 8px;
    --cus-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.cus-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--cus-text-main);
    box-sizing: border-box;
}

.cus-wrapper * {
    box-sizing: inherit;
}

/* Typography & Layout */
.cus-card {
    background: var(--cus-surface);
    border: 1px solid var(--cus-border);
    border-radius: var(--cus-radius);
    box-shadow: var(--cus-shadow);
    overflow: hidden;
}

.cus-card-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--cus-border);
    background: #fcfcfc;
}

.cus-card-header h2, .cus-card-header h4 {
    margin: 0 0 8px 0;
    color: var(--cus-text-main);
    font-weight: 600;
}

.cus-card-header p {
    margin: 0;
    color: var(--cus-text-muted);
    font-size: 0.9rem;
}

.cus-card-body {
    padding: 32px;
}

.cus-mt-4 {
    margin-top: 1.5rem;
}

/* Forms */
.cus-form-group {
    margin-bottom: 20px;
}

.cus-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--cus-text-main);
}

.cus-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--cus-border);
    border-radius: var(--cus-radius);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #fff;
    color: var(--cus-text-main);
}

.cus-input:focus {
    outline: none;
    border-color: var(--cus-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Buttons */
.cus-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: var(--cus-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.cus-btn-primary {
    background: var(--cus-primary);
    color: #fff;
    width: 100%;
}

.cus-btn-primary:hover {
    background: var(--cus-primary-hover);
    color: #fff;
}

.cus-btn-outline {
    background: transparent;
    border: 1px solid var(--cus-border);
    color: var(--cus-text-main);
    width: 100%;
}

.cus-btn-outline:hover {
    background: var(--cus-bg);
}

.cus-btn-danger {
    background: var(--cus-danger);
    color: #fff;
}

.cus-btn-danger:hover {
    background: var(--cus-danger-hover);
    color: #fff;
}

.cus-btn-full {
    width: 100%;
    display: block;
}

/* Alerts */
.cus-alert {
    padding: 16px;
    border-radius: var(--cus-radius);
    margin-bottom: 24px;
    font-size: 0.95rem;
    font-weight: 500;
}

.cus-alert-success {
    background: var(--cus-success-bg);
    color: var(--cus-success-text);
    border: 1px solid #bbf7d0;
}

.cus-alert-error {
    background: var(--cus-error-bg);
    color: var(--cus-error-text);
    border: 1px solid #fecaca;
}

/* Dashboard Grid (My Account) */
.cus-dashboard {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    align-items: start;
}

/* Profile Sidebar */
.cus-profile-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--cus-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    margin: 0 auto 16px;
}

.cus-user-email {
    text-align: center;
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    word-break: break-all;
}

.cus-role {
    text-align: center;
    color: var(--cus-text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* Download List */
.cus-download-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.cus-download-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--cus-bg);
    border: 1px solid var(--cus-border);
    border-radius: var(--cus-radius);
    text-decoration: none;
    color: var(--cus-text-main);
    transition: all 0.2s ease;
}

.cus-download-list li a:hover {
    border-color: var(--cus-primary);
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cus-doc-title {
    font-weight: 500;
}

.cus-doc-icon {
    font-size: 1.2rem;
    color: var(--cus-primary);
    background: #e0e7ff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 768px) {
    .cus-dashboard {
        grid-template-columns: 1fr;
    }
    
    .cus-login, .cus-register {
        max-width: 100%;
    }
}

.cus-login, .cus-register {
    max-width: 480px;
    margin: 0 auto;
}