/* ============================================
   SHARED STYLES - G Bond Digital Advisors
   Used across all portal pages
   ============================================ */

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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #333;
}

/* Typography */
.page-title {
    font-size: 32px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
}

/* Header */
.header {
    background: #000000;
    color: white;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 60px;
    height: auto;
}

.company-name {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.staff-badge {
    background: #fff;
    color: #000;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

/* Cards */
.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    padding: 14px 24px;
    background: #000000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: #333333;
}

.btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f0f0f0;
    color: #000000;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-small {
    width: auto;
    padding: 8px 16px;
    font-size: 13px;
    display: inline-block;
    margin-left: 8px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

input:focus, select:focus {
    outline: none;
    border-color: #000000;
}

/* Messages */
.message {
    margin-top: 16px;
    padding: 14px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.message.success {
    background: #f1f8f4;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.message.error {
    background: #fef1f1;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.message.info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 14px;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.status-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-fail {
    background: #ffebee;
    color: #c62828;
}

.status-unused {
    background: #f5f5f5;
    color: #666;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
    }

    .container {
        padding: 0 20px;
        margin: 20px auto;
    }

    .card {
        padding: 20px;
    }
}