.main-content {
display: flex;
gap: 24px;
padding: 30px 36px;
align-items: flex-start;
max-width: 1225px;
margin: 150px auto;
} .panel {
width: 300px;
flex-shrink: 0;
background: var(--bg-white);
border-radius: 24px;
padding: 28px 24px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.panel h2 {
font-size: 18px;
font-weight: 800;
color: var(--primary);
margin-bottom: 4px;
}
.panel-divider {
height: 2px;
background: var(--primary-light);
margin: 10px 0 18px;
border-radius: 2px;
}
.field-label {
font-family: 'SukhumvitSet', sans-serif;
font-weight: 500;
font-style: normal;
font-size: 12px;
line-height: 16px;
letter-spacing: 0%;
color: var(--text-soft);
margin-bottom: 12px;
display: block;
}
.field-row {
display: flex;
gap: 10px;
margin-bottom: 14px;
}
.field-group {
margin-bottom: 14px;
}
input[type="number"] {
width: 100%;
padding: 12px 24px;
border: 1px solid var(--border-light);
border-radius: 20px;
font-size: 12px;
font-family: inherit;
color: var(--text-soft);
background: var(--bg-weak);
outline: none;
transition: border-color .2s;
}
input[type="number"]:focus {
border-color: var(--primary);
} .custom-select {
position: relative;
width: 100%;
user-select: none;
}
.cs-trigger {
width: 100%;
padding: 12px 24px;
border: 1px solid var(--border-light);
border-radius: 24px;
font-size: 12px;
font-family: inherit;
color: var(--text-soft);
background: var(--bg-weak);
cursor: pointer;
display: flex;
align-items: center;
justify-content: space-between;
transition: border-color .2s, box-shadow .2s;
overflow: hidden;
text-overflow: ellipsis;
position: relative;
}
.cs-trigger.has-value {
color: var(--text-light);
}
.cs-trigger:hover {
border-color: #ccc;
}
.cs-trigger.open {
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.08);
border-radius: 20px 20px 12px 12px;
}
.cs-trigger .cs-arrow {
position: absolute;
right: 14px;
top: 50%;
transform: translateY(-50%);
width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
pointer-events: none;
transition: transform .2s;
}
.cs-trigger.open .cs-arrow {
transform: translateY(-50%) rotate(180deg);
}
.cs-arrow svg {
width: 12px;
height: 12px;
stroke: #999;
fill: none;
stroke-width: 2.5;
stroke-linecap: round;
stroke-linejoin: round;
}
.cs-trigger.open .cs-arrow svg {
stroke: var(--primary);
}
.cs-dropdown {
position: absolute;
top: calc(100% + 2px);
left: 0;
right: 0;
background: white;
border: 1.5px solid var(--primary);
border-radius: 12px;
box-shadow: 0 8px 24px rgba(230, 0, 126, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
z-index: 9999;
overflow: hidden;
display: none;
animation: csDropIn .15s ease;
}
.cs-dropdown.open {
display: block;
}
@keyframes csDropIn {
from {
opacity: 0;
transform: translateY(-6px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.cs-options {
max-height: 200px;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: var(--primary-light) #f9f9f9;
}
.cs-options::-webkit-scrollbar {
width: 5px;
}
.cs-options::-webkit-scrollbar-track {
background: #f9f9f9;
}
.cs-options::-webkit-scrollbar-thumb {
background: var(--primary-light);
border-radius: 4px;
}
.cs-option {
padding: 10px 16px;
font-size: 13px;
font-family: inherit;
color: var(--text);
cursor: pointer;
transition: background .12s;
display: flex;
align-items: center;
gap: 8px;
}
.cs-option:first-child {
background: #f0f0f0;
color: #888;
font-weight: 600;
cursor: default;
pointer-events: none;
border-bottom: 1px solid #f0f0f0;
}
.cs-option:hover {
background: var(--primary-light);
color: var(--primary);
}
.cs-option.selected {
background: var(--primary);
color: white;
font-weight: 700;
}
.cs-option.selected:hover {
background: var(--primary-hover);
} .custom-select select {
display: none;
}
.day-input {
width: 90px;
flex-shrink: 0;
}
.calc-btn {
width: 100%;
padding: 13px;
background: var(--primary);
color: var(--text-white);
border: none;
border-radius: 25px;
font-size: 15px;
font-weight: 800;
cursor: pointer;
margin-top: 16px;
transition: background .2s, transform .1s;
font-family: inherit;
pointer-events: auto;
}
.calc-btn.active {
background: var(--primary);
color: white;
cursor: pointer;
pointer-events: auto;
}
.calc-btn.active:hover {
background: var(--primary-hover);
}
.calc-btn.active:active {
transform: scale(0.98);
} .calendar-outer {
flex: 1;
background: var(--bg-white);
border-radius: 24px;
padding: 28px 36px 28px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
min-width: 0;
}
.cal-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
}
.cal-month-title {
font-size: 17px;
font-weight: 800;
color: var(--text);
}
.cal-nav-btn {
background: var(--primary);
border: none;
font-size: 20px;
font-weight: 800;
cursor: pointer;
color: white;
width: 36px;
height: 36px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: background .2s, transform .1s;
flex-shrink: 0;
}
.cal-nav-btn:hover {
background: var(--primary-hover);
transform: scale(1.1);
}
.cal-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
column-gap: 0;
row-gap: 0;
}
.cal-day-name {
text-align: center;
font-size: 14px;
font-weight: 700;
color: var(--primary);
padding: 12px 0 20px;
}
.cal-day {
display: flex;
align-items: center;
justify-content: center;
padding: 18px 0;
font-size: 15px;
font-weight: 600;
color: #555;
cursor: default;
position: relative;
}
.cal-day span {
width: 42px;
height: 42px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: background .15s;
}
.cal-day.other-month {
color: #ccc;
}
.cal-day.Period span {
background: #e6007e;
color: white;
}
.cal-day.fertile-days span {
background: #d4eaff;
color: #1a5a99;
}
.cal-day.ovulation span {
background: #f3cb80;
}
.cal-day.next-period span {
background: transparent;
color: #e6007e;
border: 2.5px dashed #e6007e;
}
.cal-nav-btn.inactive {
background: #e0e0e0;
color: #aaa;
cursor: not-allowed;
pointer-events: none;
}
.cal-nav-btn.inactive:hover {
background: #e0e0e0;
transform: none;
} .legend {
display: flex;
gap: 22px;
margin-top: 18px;
flex-wrap: wrap;
align-items: center;
}
.legend-item {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
font-weight: 600;
color: #555;
}
.legend-dot {
width: 30px;
height: 30px;
border-radius: 50%;
flex-shrink: 0;
}
.legend-dot.Period {
background: #e6007e;
}
.legend-dot.fertile-days {
background: #d4eaff;
border: 1.5px solid #a0c8f0;
}
.legend-dot.ovulation {
background: #f3cb80;
}
.legend-dot.next-period {
background: transparent;
border: 2.5px dashed #e6007e;
}
.field-error {
display: none;
color: #e6007e;
font-size: 11px;
font-weight: 600;
margin-top: 4px;
margin-bottom: 10px;
padding-left: 4px;
}
.field-invalid .field-row {
margin-bottom: 0;
}
.field-invalid .cs-trigger {
border-color: #e6007e !important;
}
.field-invalid .field-error {
display: block;
}
#fieldDate.field-invalid .cs-trigger {
border-color: #e6007e !important;
}
#fieldPeriodLength.field-invalid .cs-trigger {
border-color: #e6007e !important;
}
#summary {
margin-top: 14px;
font-size: 13px;
padding: 12px 16px;
background: var(--primary-light);
border-radius: 10px;
display: none;
}
#summary p {
margin: 4px 0;
} .next-Menstruation-info {
margin-top: 14px;
font-size: 13px;
padding: 14px 16px;
background: #fff0f7;
border-radius: 10px;
border: 1.5px solid #f9b8d8;
display: none;
}
.next-Menstruation-info .npi-title {
font-weight: 800;
color: var(--primary);
font-size: 13px;
margin-bottom: 10px;
}
.next-Menstruation-info .npi-row {
display: flex;
align-items: flex-start;
gap: 10px;
margin-bottom: 10px;
font-size: 14px;
line-height: 14px;
color: var(--text-soft);
}
.npi-dot {
width: 10px;
height: 10px;
border-radius: 50%;
flex-shrink: 0;
margin-top: 3px;
}
.npi-tip {
margin-top: 10px;
font-size: 12px;
color: var(--text-soft);
font-weight: 400;
font-style: normal;
border-top: 1px solid #f5c0da;
padding-top: 8px;
line-height: 1.5;
} .cal-icon {
font-size: 18px;
}
.cal-header-center {
display: flex;
align-items: center;
gap: 8px;
} @media (max-width: 768px) {
.main-content {
flex-direction: column;
padding: 12px 14px;
gap: 14px;
}
.panel {
width: 100%;
padding: 22px 18px;
border-radius: 16px;
}
.panel h2 {
font-size: 20px;
}
.calendar-outer {
padding: 16px 14px 18px;
border-radius: 16px;
}
.cal-nav-btn {
width: 30px;
height: 30px;
font-size: 17px;
}
.cal-month-title {
font-size: 15px;
}
.cal-day-name {
font-size: 12px;
padding: 8px 0 12px;
}
.cal-day {
padding: 10px 0;
font-size: 13px;
}
.cal-day span {
width: 32px;
height: 32px;
}
.legend {
gap: 12px;
margin-top: 14px;
}
.legend-item {
font-size: 12px;
}
.legend-dot {
width: 22px;
height: 22px;
}
#summary {
font-size: 12px;
}
}
@media (max-width: 400px) {
.cal-day span {
width: 28px;
height: 28px;
}
.cal-day {
font-size: 12px;
padding: 8px 0;
}
}