@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');


/* ===== CARTS PAGE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #eeedef;
    font-family: 'Inter', sans-serif;
    color: #111;
    -webkit-font-smoothing: antialiased;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}
.svg-logo {
    width: 100px;
    height: auto;
}
.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}
.header-btn {
    padding: 10px 24px;
    border: 1.5px solid #1a1a1a;
    border-radius: 30px;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}
.header-btn:hover {
    background: #1a1a1a;
    color: #fff;
}
.header-username-btn {
    background: #00A6FF;
    color: #fff;
    border-color: #00A6FF;
}
.header-username-btn:hover {
    background: #0090e0;
    border-color: #0090e0;
}

.carts-page {
    display: flex;
    min-height: 100vh;
    padding: 48px 56px;
    gap: 40px;
    box-sizing: border-box;
}

/* ========= SIDEBAR (white rounded rectangle) ========= */
.carts-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 20px;
    padding: 40px 24px 24px;
    display: flex;
    flex-direction: column;
    height: fit-content;
    align-self: flex-start;
    position: sticky;
    top: 48px;
}
.carts-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.carts-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    text-decoration: none;
    color: #111;
    font-size: 16px;
    font-weight: 400;
    border-radius: 10px;
    transition: background 0.12s;
}
.carts-nav-item:hover { background: #f3f4f6; }
.carts-nav-item.active { font-weight: 600; }
.carts-nav-item svg {
    width: 20px; height: 20px;
    stroke: #111; flex-shrink: 0;
    stroke-width: 1.7; fill: none;
}
.carts-nav-item.no-icon svg { display: none; }

.carts-logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    margin-top: auto;
    cursor: pointer;
    color: #111;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: none; border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    transition: opacity 0.15s;
}
.carts-logout-btn:hover { opacity: 0.6; }
.carts-logout-btn svg { width: 20px; height: 20px; stroke: #111; stroke-width: 1.7; fill: none; }

/* ========= MAIN ========= */
.carts-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ========= SEARCH (pill, icon inside, no border, white bg) ========= */
.carts-search {
    max-width: 540px;
    margin-bottom: 12px;
}
.carts-search-input {
    width: 100%;
    border: none;
    outline: none;
    padding: 16px 22px 16px 54px;
    font-size: 16px;
    font-family: inherit;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239aa0a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 18px center no-repeat;
    border-radius: 999px;
    color: #111;
}
.carts-search-input::placeholder { color: #ccc; }

/* ========= TITLE ========= */
.carts-title {
    font-size: 38px;
    font-weight: 800;
    color: #111;
    margin: 0 0 12px 0;
    line-height: 1;
    letter-spacing: -0.02em;
}

/* ========= SHARED CARD (white rounded) ========= */
.carts-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-sizing: border-box;
    margin-bottom: 12px;
}

/* ========= PROFILE CARD: avatar + bordered info box ========= */
.profile-card-content {
    display: flex;
    gap: 32px;
    align-items: center;
}

/* Avatar — plain gray circle, no letter */
.profile-avatar {
    width: 190px;
    height: 190px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #dcdde0;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Info box — thin border, rounded, inside the white card */
.profile-info {
    flex: 1;
    min-width: 0;
    border: 1.5px solid #d4d6db;
    border-radius: 14px;
    padding: 24px 28px 28px;
    position: relative;
}

.profile-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}
.profile-info-head {
    font-size: 26px;
    font-weight: 800;
    color: #111;
    margin: 0;
    letter-spacing: -0.01em;
}

/* "редактировать" outlined pill — top-right inside info box */
.profile-edit-btn {
    border: 1.5px solid #d4d6db;
    background: #fff;
    border-radius: 999px;
    padding: 6px 16px 6px 12px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #111;
    font-family: inherit;
    font-weight: 400;
    transition: background 0.12s;
    flex-shrink: 0;
}
.profile-edit-btn:hover { background: #f7f7f9; }
.profile-edit-btn svg {
    width: 12px; height: 12px;
    stroke: #111; stroke-width: 2; fill: none;
}

/* 3 columns: Имя (narrow, so long names wrap), Email, Phone */
.profile-info-fields {
    display: grid;
    grid-template-columns: minmax(100px, 170px) minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 12px 32px;
    align-items: start;
}
.profile-field-label {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 3px;
    font-weight: 400;
}
.profile-field-value {
    font-size: 17px;
    font-weight: 500;
    color: #111;
    line-height: 1.35;
    word-break: break-word;
}
.profile-field-value.phone {
    font-weight: 700;
}

/* ========= PRESENTATIONS ========= */
.presentations-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.presentations-title {
    font-size: 26px;
    font-weight: 700;
    color: #111;
    margin: 0;
    letter-spacing: -0.01em;
}

/* "+" button: small outlined square with rounded corners */
.presentations-add {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1.5px solid #c0c2c6;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #111;
    transition: background 0.12s;
    line-height: 1;
    padding-bottom: 2px;
    text-decoration: none;
}
.presentations-add:hover { background: #f7f7f9; }

.presentations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 16px;
}
.presentation-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    color: #111;
}
.presentation-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #dddde0;
    border-radius: 10px;
    overflow: hidden;
}
.presentation-thumb img { width: 100%; height: 100%; object-fit: cover; }
.presentation-name {
    font-size: 14px;
    font-weight: 400;
    color: #111;
    line-height: 1.35;
    margin: 0;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 1200px) {
    .presentations-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .carts-page { flex-direction: column; padding: 20px; gap: 20px; }
    .carts-sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        position: static;
        gap: 16px;
    }
    .carts-nav { flex-direction: row; gap: 8px; }
    .carts-logout-btn { margin-top: 0; width: auto; padding: 14px 12px; }
    .profile-card-content { flex-direction: column; align-items: center; gap: 24px; }
    .profile-info-fields { grid-template-columns: 1fr; gap: 14px; }
    .presentations-grid { grid-template-columns: repeat(2, 1fr); }
}
