/* Companies Page Styles */
.companies-section,
.company-details-section {
    background: #0a0e27;
    min-height: 100vh;
    padding: 0;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.companies-section.active,
.company-details-section.active {
    display: block;
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 16px;
    position: relative;
    z-index: 1;
}

/* Page header button styles - override any header styles */
.page-header .btn-primary,
.page-header .btn-primary.btn-icon {
    position: relative !important;
    z-index: 1 !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    width: auto !important;
    min-width: auto !important;
    background: var(--primary-gradient) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.page-header .btn-primary.btn-icon:hover,
.page-header .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
    background: var(--primary-gradient) !important;
}

.page-title {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-align: left;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
    text-align: left;
}

.page-footer {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

/* Companies List */
.companies-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.company-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.company-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.company-card:hover::before {
    transform: scaleX(1);
}

.company-card-content {
    flex: 1;
}

.company-name {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.company-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.company-meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.company-card-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    transition: all 0.3s ease;
}

.company-card:hover .company-card-arrow {
    color: rgba(102, 126, 234, 1);
    transform: translateX(4px);
}

/* Company Details */
.company-details-content {
    flex: 1;
    margin-bottom: 32px;
}

.company-details-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 14px;
    min-width: 140px;
}

.detail-value {
    color: white;
    font-size: 14px;
    text-align: right;
    flex: 1;
    font-weight: 500;
}

/* Bank Accounts Section */
.bank-accounts-section {
    margin-top: 32px;
    margin-bottom: 24px;
}

.section-header {
    margin-bottom: 16px;
}

.section-title {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.bank-accounts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.bank-account-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.bank-account-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.7);
    grid-column: 1 / -1;
}

.empty-state p {
    margin: 8px 0;
    font-size: 16px;
}

.empty-hint {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Loading Message */
.loading-message {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    grid-column: 1 / -1;
}
