:root {
    --primary-color: #2979ff;
    --primary-gradient: linear-gradient(135deg, #448aff 0%, #2962ff 100%);
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-secondary: #666666;
    --danger-color: #ff4d4f;
    --border-color: #eeeeee;
    --success-color: #52c41a;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
}

#app {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--bg-color);
    position: relative;
    padding-bottom: 20px;
}
.sm{
    padding: 0px 20px;
    font-size: 13px;
    margin: 0;
    opacity: 0.5;
}
/* Header Section */
.header {
    background: var(--primary-gradient);
    padding: 20px 16px 40px; /* Extra padding at bottom for overlap */
    color: white;
    text-align: center;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.app-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.app-subtitle {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.type-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 4px;
    margin: 0 auto;
    max-width: 320px;
}

.toggle-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.toggle-btn.active {
    background: white;
    color: var(--primary-color);
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Notice Bar */
.notice-bar {
    background: var(--danger-color);
    color: white;
    padding: 10px 16px;
    font-size: 13px;
    margin: -20px 16px 16px; /* Negative margin to pull up */
    border-radius: 8px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
    text-align: center;
    line-height: 1.5;
}

.notice-highlight {
    font-weight: bold;
}

/* Form Card */
.form-card {
    background: var(--card-bg);
    margin: 0 16px 10px;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid transparent;
    background-color: #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s;
}

.form-input:focus {
    background-color: white;
    border-color: var(--primary-color);
    outline: none;
}

.submit-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(41, 121, 255, 0.3);
}

.submit-btn:active {
    transform: scale(0.98);
}

.btn-disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}

/* List Section */
.list-section {
    padding: 0 16px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    margin-top: 5px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px; 
    white-space: nowrap;
}

.search-box {
    display: flex;
    flex: 1;
    margin-left: 16px;
    background: white;
    border-radius: 20px;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input {
    flex: 1;
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    background: transparent;
    outline: none;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 18px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px; /* For scrollbar if needed */
}

.filter-tab {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    border-radius: 20px;
    font-size: 13px;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
}

.filter-tab.active {
    background: #e6f7ff; /* Light blue bg */
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

/* Card List */
.card-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.info-card {
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.card-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.card-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

.tag-freelancer {
    background: #e6f7ff;
    color: #1890ff;
}

.tag-team {
    background: #fff1f0;
    color: #f5222d;
}

.card-score {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color); /* Default */
    margin-bottom: 8px;
}

.score-freelancer {
    color: #1890ff;
}

.score-team {
    color: #f5222d;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #999;
    margin-top: 4px;
}

.copy-btn {
    background: #e6f7ff;
    border: 1px solid transparent;
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:active {
    background: #bae7ff;
    transform: scale(0.95);
}

/* Icons using simple shapes or text if no font awesome */
.icon {
    display: inline-block;
}
