* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1f2937;
    --secondary-color: #3b82f6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --light-bg: #f9fafb;
    --dark-bg: #111827;
    --border-color: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.page {
    display: none;
    width: 100%;
    min-height: 100vh;
    animation: fadeIn 0.5s ease-in;
}

.page.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* LOGIN SAYFASI */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 50px 40px;
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.google-logo {
    text-align: center;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.login-box h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.login-box h2 {
    text-align: center;
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.error-message {
    color: var(--danger-color);
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* HOŞGELDİNİZ SAYFASI */
.welcome-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 20px;
}

.welcome-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 50px 40px;
    text-align: center;
    max-width: 500px;
    animation: scaleIn 0.6s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    font-size: 60px;
    color: var(--success-color);
    margin-bottom: 20px;
    animation: checkMark 0.6s ease-out;
}

@keyframes checkMark {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.welcome-box h1 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.welcome-box p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 30px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ONAY BEKLEME SAYFASI */
.approval-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 20px;
}

.approval-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 50px 40px;
    text-align: center;
    max-width: 500px;
    animation: slideUp 0.6s ease-out;
}

.approval-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.approval-box h1 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.approval-text {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.approval-text strong {
    color: var(--primary-color);
}

.waiting-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    animation: dotPulse 1.4s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 60%, 100% {
        opacity: 0.3;
    }
    30% {
        opacity: 1;
    }
}

.countdown {
    color: var(--text-secondary);
    font-size: 14px;
}

#approvalTimer {
    font-weight: 600;
    color: var(--warning-color);
}

/* İŞLETME SEÇİM SAYFASI */
.business-select-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    animation: fadeIn 0.6s ease-out;
}

.select-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.select-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.select-header p {
    font-size: 18px;
    opacity: 0.9;
}

.business-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.business-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.6s ease-out;
}

.business-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.business-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.location-pin {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.business-info {
    padding: 20px;
}

.business-info h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.business-info .rating {
    color: var(--warning-color);
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.business-info .address {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

/* ANA SAYFA - YENİ TASARIM */
.main-container-full {
    width: 100%;
    min-height: 100vh;
    background: var(--light-bg);
    animation: fadeIn 0.6s ease-out;
}

.main-header {
    background: white;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.main-header h1 {
    font-size: 32px;
    color: var(--primary-color);
    margin: 0;
}

.btn-logout {
    padding: 10px 20px;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-logout:hover {
    background: var(--border-color);
    color: var(--primary-color);
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    padding: 30px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* SOL TARAF - İŞLETME DETAYLARı */
.business-details-section {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.business-images {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-image-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-info-box {
    padding: 30px;
}

.business-info-box h2 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.rating-stars {
    font-size: 16px;
    color: var(--warning-color);
    font-weight: 600;
}

.review-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.business-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.business-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 10px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    white-space: nowrap;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--light-bg);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.business-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.business-meta p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.business-meta strong {
    color: var(--primary-color);
}

.business-meta a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.business-meta a:hover {
    text-decoration: underline;
}

/* SAĞ TARAF - İŞLETME AYARLARI */
.business-actions-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.actions-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.actions-card h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.share-input-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    font-family: monospace;
    background: var(--light-bg);
}

.btn-copy {
    padding: 10px 12px;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-copy:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.btn-action {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.btn-action:last-child {
    margin-bottom: 0;
}

.btn-icon {
    font-size: 16px;
}

.btn-close {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
}

.btn-open {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-open:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

/* BİLDİRİM */
.notification {
    position: fixed;
    bottom: 0;
    right: 0;
    background: white;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 400px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
    transform: translateY(100%);
    margin: 20px;
}

.notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-20px);
}

.notification.hide {
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
}

.notification-icon {
    font-size: 30px;
    color: var(--success-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.notification-text h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.notification-text p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .business-actions-panel {
        order: -1;
    }
}

@media (max-width: 768px) {
    .login-box,
    .welcome-box,
    .approval-box {
        padding: 40px 30px;
    }

    .main-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .main-header h1 {
        font-size: 24px;
    }

    .main-content {
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .select-header h1 {
        font-size: 28px;
    }

    .business-list {
        grid-template-columns: 1fr;
    }

    .business-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .notification {
        max-width: 90%;
        right: 5%;
        left: 5%;
    }
}

@media (max-width: 480px) {
    .login-box,
    .welcome-box,
    .approval-box {
        padding: 30px 20px;
    }

    .google-logo svg {
        width: 80px;
        height: 80px;
    }

    .main-header {
        padding: 15px;
    }

    .main-header h1 {
        font-size: 20px;
    }

    .main-content {
        padding: 15px;
    }

    .business-info-box {
        padding: 20px;
    }

    .business-info-box h2 {
        font-size: 18px;
    }

    .select-header h1 {
        font-size: 20px;
    }

    .select-header p {
        font-size: 16px;
    }

    .business-list {
        grid-template-columns: 1fr;
    }

    .business-tabs {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        font-size: 12px;
    }

    .business-meta p {
        font-size: 13px;
    }

    .actions-card {
        padding: 15px;
    }

    .actions-card h3 {
        font-size: 14px;
    }

    .btn-action {
        padding: 10px 12px;
        font-size: 12px;
    }

    .notification {
        max-width: 100%;
        right: 0;
        left: 0;
        border-radius: 15px;
        margin: 0;
    }

    .notification-content {
        padding: 15px;
    }

    .notification-text h3 {
        font-size: 16px;
    }

    .notification-text p {
        font-size: 13px;
    }
}

/* FERIT MODAL */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal.show {
    display: flex;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}
.modal-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 14px;
    padding: 28px 24px;
    width: 420px;
    max-width: calc(100% - 40px);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
    text-align: center;
    z-index: 2010;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-secondary);
}
.modal-icon {
    font-size: 42px;
    margin-bottom: 12px;
}
.modal-card h2 {
    margin: 6px 0 8px;
    font-size: 20px;
    color: var(--primary-color);
}
.modal-message {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
}
.modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.modal .btn-action {
    width: 140px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
}

@media (max-width: 480px) {
    .modal-card { width: 92%; padding: 20px; }
    .modal-icon { font-size: 36px; }
}
