:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --primary-light: #9ccae9;
    --secondary-color: #2c3e50;
    --secondary-dark: #1a252f;
    --warning-color: #f1c40f;
    --danger-color: #e74c3c;
    --light-color: #ffffff;
    --light-gray: #f4f4f4;
    --medium-gray: #bdc3c7;
    --dark-gray: #2d3436;
    --text-color: #000000;

    --gradient-primary: linear-gradient(135deg, #3498db 0%, #9ccae9 100%);
    --gradient-secondary: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --gradient-warning: linear-gradient(135deg, #f1c40f 0%, #f9e79f 100%);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);
}


body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--light-color);
    min-height: 100vh;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.header {
    position: sticky;
    top: 0;
    background: var(--gradient-primary);
    color: var(--light-color);
    padding: 18px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.header-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.2s;
}

.header-icon:hover {
    transform: scale(1.1);
}

.user-profile-container {
    padding: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    margin-right: 20px;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--light-color);
    position: relative;
    z-index: 1;
}

.profile-info {
    position: relative;
    z-index: 1;
}

.profile-info h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-gray);
}

.profile-info p {
    margin: 5px 0 0;
    color: #666;
    font-size: 15px;
}

.profile-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--medium-gray);
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
}

.profile-tabs::-webkit-scrollbar {
    display: none;
}

.tab-button {
    padding: 12px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: #666;
    margin-right: 25px;
    position: relative;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.message svg {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 5px solid var(--secondary-color);
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 5px solid var(--danger-color);
}

.user-data-view .data-row {
    display: flex;
    margin-bottom: 15px;
    padding: 18px;
    background-color: var(--light-gray);
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}

.user-data-view .data-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.user-data-view .label {
    font-weight: 600;
    width: 100px;
    color: var(--dark-gray);
    font-size: 14px;
}

.user-data-view .value {
    flex: 1;
    font-weight: 500;
}

.edit-button {
    background: var(--gradient-primary);
    color: var(--light-color);
    border: none;
    padding: 15px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    margin-top: 15px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.edit-button svg {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-gray);
}

.form-group input {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid var(--medium-gray);
    border-radius: 12px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.2s;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
}

.save-button {
    background: var(--gradient-secondary);
    color: var(--light-color);
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
}

.save-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.save-button svg {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

.cancel-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.cancel-button:hover {
    background-color: rgba(108, 92, 231, 0.1);
    transform: translateY(-2px);
}

.order-history {
    margin-top: 20px;
}

.order-history h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--dark-gray);
    position: relative;
    display: inline-block;
}

.order-history h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.order-card {
    background: var(--light-color);
    border-radius: 16px;
    padding: 0;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--medium-gray);
    overflow: hidden;
    transition: all 0.3s;
}

.order-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.order-header {
    padding: 18px;
    border-bottom: 1px solid var(--medium-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--light-gray);
}

.order-id {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-ready {
    background: var(--gradient-secondary);
    color: white;
}

.status-delivering {
    background: var(--gradient-warning);
    color: var(--dark-gray);
}

.status-processing {
    background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%);
    color: white;
}

.status-ordered {
    background: linear-gradient(135deg, #636e72 0%, #b2bec3 100%);
    color: white;
}

.order-date {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
    display: flex;
    align-items: center;
}

.order-date svg {
    width: 14px;
    height: 14px;
    margin-right: 5px;
}

.order-details {
    padding: 18px;
}

.order-items {
    flex: 1;
}

.order-items h4 {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
}

.order-items h4 svg {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

.order-items ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.order-items li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--medium-gray);
}

.order-items li:last-child {
    border-bottom: none;
}

.item-name {
    flex: 2;
    font-weight: 500;
}

.item-quantity {
    flex: 1;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.item-price {
    flex: 1;
    text-align: right;
    font-weight: 600;
}

.order-summary {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--medium-gray);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.total-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 20px;
}

.reorder-button {
    background: var(--gradient-primary);
    color: var(--light-color);
    border: none;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reorder-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.reorder-button:disabled {
    background: var(--medium-gray);
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.reorder-button svg {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

.footer {
    text-align: center;
    padding: 25px;
    background-color: var(--dark-gray);
    color: var(--light-color);
    font-size: 14px;
    border-top: 1px solid var(--medium-gray);
}

/* Új elemek */
.premium-badge {
    background: var(--gradient-warning);
    color: var(--dark-gray);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 10px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.restaurant-card {
    display: flex;
    margin-bottom: 18px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--light-color);
    border: 1px solid var(--medium-gray);
    transition: all 0.3s;
}

.restaurant-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.restaurant-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    transition: transform 0.3s;
}

.restaurant-card:hover .restaurant-image {
    transform: scale(1.05);
}

.restaurant-info {
    padding: 15px;
    flex: 1;
}

.restaurant-name {
    font-weight: 700;
    margin: 0 0 5px;
    font-size: 16px;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
}

.restaurant-meta {
    color: #666;
    font-size: 13px;
    margin: 5px 0;
    display: flex;
    align-items: center;
}

.delivery-time {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
}

.delivery-time svg {
    margin-right: 5px;
    width: 16px;
    height: 16px;
}

.rating-stars {
    color: var(--warning-color);
    font-size: 14px;
    font-weight: 600;
    margin-right: 5px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 20px;
}

.empty-button {
    background: var(--gradient-primary);
    color: var(--light-color);
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
}

.empty-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.empty-button svg {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

/* Animációk */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-content > div {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Reszponzív design */
@media (max-width: 480px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 15px;
        width: 80px;
        height: 80px;
        font-size: 30px;
    }
    
    .tab-button {
        margin-right: 15px;
        font-size: 14px;
        padding: 10px 0;
    }
    
    .restaurant-card {
        flex-direction: column;
    }
    
    .restaurant-image {
        width: 100%;
        height: 150px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .save-button, .cancel-button {
        width: 100%;
        justify-content: center;
    }
}

/* Speciális effektek */
.profile-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: var(--gradient-primary);
    z-index: 0;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
  background: var(--primary-color);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 0.2s ease;
}

.back-button:hover {
  background: var(--primary-dark);
}
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.back-button.inline {
  background: white;
  color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.back-button.inline:hover {
  background: var(--light-color);
  color: var(--primary-dark);
}
.header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.back-button-under {
  display: inline-block;
  margin-top: 10px;
  background: white;
  color: var(--primary-color);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.back-button-under:hover {
  background: var(--light-color);
  color: var(--primary-dark);
}
.grouped-inline {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.grouped-inline > div {
  flex: 1;
  min-width: 100px;
}
