/* ==========================================================================
   SERVESAAS HR - COMPANY PROFILE & BILLING STYLES (DESKTOP & MOBILE)
   (static/css/company_profile.css)
   ========================================================================== */

.prof-page-container {
    max-width: 1440px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
}

/* Two-column layout on Desktop, single column on Mobile */
.prof-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 28px;
    align-items: start;
    width: 100%;
}

@media (max-width: 991px) {
    .prof-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .prof-page-container {
        padding: 10px 0 80px 0;
    }
}

/* Master Card Styles */
.prof-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prof-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

/* Hero Identity Card */
.prof-hero-header {
    background: linear-gradient(135deg, #2b6cb0 0%, #3182ce 50%, #4299e1 100%);
    height: 90px;
    position: relative;
}

.prof-hero-content {
    padding: 0 20px 24px 20px;
    text-align: center;
    position: relative;
    margin-top: -45px;
}

.prof-avatar-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 100%);
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: 1px;
}

.prof-company-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 6px 0;
    word-break: break-word;
}

.prof-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.prof-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.prof-pill-code {
    background: #edf2f7;
    color: #4a5568;
    border: 1px solid #cbd5e0;
}

.prof-pill-active {
    background: #e6fffa;
    color: #234e52;
    border: 1px solid #b2f5ea;
}

.prof-pill-role {
    background: #ebf8ff;
    color: #2b6cb0;
    border: 1px solid #bee3f8;
}

/* Quick Metrics Bar */
.prof-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #edf2f7;
    padding: 12px 6px;
    margin-top: 10px;
}

.prof-stat-item {
    text-align: center;
    border-right: 1px solid #edf2f7;
}

.prof-stat-item:last-child {
    border-right: none;
}

.prof-stat-val {
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
}

.prof-stat-label {
    font-size: 11px;
    color: #718096;
    margin-top: 2px;
}

/* Details Section */
.prof-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #edf2f7;
}

.prof-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.prof-details-list {
    padding: 8px 20px 20px 20px;
}

.prof-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px dashed #edf2f7;
    font-size: 13px;
    gap: 16px;
}

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

.prof-detail-label {
    color: #718096;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 110px;
}

.prof-detail-value {
    color: #1a202c;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
    max-width: 65%;
}

/* Edit Mode Form */
.prof-edit-form {
    padding: 16px 20px 20px 20px;
    background: #f8fafc;
    border-radius: 0 0 16px 16px;
}

.prof-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 600px) {
    .prof-input-grid {
        grid-template-columns: 1fr;
    }
}

.prof-form-group {
    margin-bottom: 12px;
}

.prof-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 4px;
}

.prof-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 13px;
    color: #2d3748;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.prof-form-input:focus {
    border-color: #3182ce;
    outline: none;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

/* Subscription & Billing Cards */
.prof-sub-banner {
    background: linear-gradient(135deg, #ebf8ff 0%, #e6fffa 100%);
    border: 1px solid #bee3f8;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.prof-sub-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.prof-sub-plan-title {
    font-size: 24px;
    font-weight: 800;
    color: #2b6cb0;
    margin: 0;
}

.prof-sub-badge {
    background: #38a169;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prof-quota-bar-wrapper {
    background: #edf2f7;
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
    margin: 8px 0;
}

.prof-quota-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3182ce 0%, #48bb78 100%);
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* Plan Selection Cards */
.prof-plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .prof-plans-grid {
        grid-template-columns: 1fr;
    }
}

.prof-plan-choice {
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
}

.prof-plan-choice:hover {
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.prof-plan-choice.selected-free {
    border-color: #3182ce;
    background: #ebf8ff;
}

.prof-plan-choice.selected-trial {
    border-color: #d97706;
    background: #fffbeb;
}

.prof-plan-choice.selected-pro {
    border-color: #805ad5;
    background: #faf5ff;
}

.prof-plan-badge-rec {
    position: absolute;
    top: -10px;
    right: 15px;
    background: linear-gradient(135deg, #805ad5, #6b46c1);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Ecosystem Integration Cards */
.prof-eco-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: background 0.2s ease;
}

.prof-eco-card:hover {
    background: #edf2f7;
}

.prof-eco-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prof-eco-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.prof-eco-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.prof-eco-subtitle {
    font-size: 11px;
    color: #718096;
    margin: 2px 0 0 0;
}

/* Touch Friendly Buttons */
.prof-btn {
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    box-sizing: border-box;
}

.prof-btn-primary {
    background: #3182ce;
    color: #ffffff;
}

.prof-btn-primary:hover {
    background: #2b6cb0;
}

.prof-btn-purple {
    background: #805ad5;
    color: #ffffff;
}

.prof-btn-purple:hover {
    background: #6b46c1;
}

.prof-btn-outline {
    background: #ffffff;
    border: 1px solid #cbd5e0;
    color: #4a5568;
}

.prof-btn-outline:hover {
    background: #f7fafc;
    border-color: #a0aec0;
}

.prof-btn-danger {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #e53e3e;
}

.prof-btn-danger:hover {
    background: #fed7d7;
}

.prof-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.prof-full-width {
    width: 100%;
}
