* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: #ffffff;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1200px;
    width: 100%;
}

/* Specific max-width for index and login pages */
.container.compact {
    max-width: 500px;
}

.sync-btn {
    background: linear-gradient(45deg, #4caf50, #45a049);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    margin-bottom: 20px;
}

.sync-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.sync-btn:disabled {
    background: linear-gradient(45deg, #666, #555);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.metaobjects-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.metaobjects-section h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 300;
    color: #64b5f6;
    text-align: center;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.meta-btn {
    background: linear-gradient(45deg, #2196f3, #1976d2);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.meta-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.meta-btn:disabled {
    background: linear-gradient(45deg, #666, #555);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Landing page styles */
.page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-image {
    margin-bottom: 20px;
}

.page-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
    transition: all 0.3s ease;
}

.page-card:hover .page-logo {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.4);
}

/* Coming Soon card styles */
.coming-soon {
    cursor: default;
    opacity: 0.8;
}

.coming-soon:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.coming-soon .page-logo {
    filter: grayscale(30%);
    opacity: 0.8;
}

.page-card h2 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
}

/* Header styles for sub-pages */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
    position: relative;
}

.header h2 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 1.3rem;
    font-weight: 300;
}

/* Main page header specific styles */
.container > .header {
    margin-bottom: 40px;
}

.container > .header h2 {
    font-size: 1.8rem;
    font-weight: 300;
    background: linear-gradient(45deg, #64b5f6, #42a5f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1;
}

.logout-btn {
    background: linear-gradient(45deg, #f44336, #d32f2f);
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.logout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.back-btn {
    color: #64b5f6;
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(100, 181, 246, 0.1);
    border: 1px solid rgba(100, 181, 246, 0.3);
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(100, 181, 246, 0.2);
    transform: translateX(-2px);
}

.content-section {
    margin-top: 20px;
}

.content-section h2 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 300;
    color: #64b5f6;
}

.content-section p {
    margin-bottom: 25px;
    color: #cccccc;
    line-height: 1.6;
}

/* Login form styles */
.login-form {
    max-width: 400px;
    margin: 0 auto;
}

.login-form h2 {
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 300;
    background: linear-gradient(45deg, #64b5f6, #42a5f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #64b5f6;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.2);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.login-btn {
    width: 100%;
    background: linear-gradient(45deg, #4caf50, #45a049);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    margin-top: 10px;
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.login-btn:disabled {
    background: linear-gradient(45deg, #666, #555);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Toast notification styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px 40px 16px 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 350px;
    word-wrap: break-word;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.info {
    border-left-color: #4caf50;
}

.toast.error {
    border-left-color: #f44336;
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: #333;
}

/* Fina page placeholder styles */
.fina-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.fina-placeholder.shopify {
    background: linear-gradient(45deg, #96bf48, #7ab317);
}

.fina-placeholder.fina {
    background: linear-gradient(45deg, #2196f3, #1976d2);
}

.fina-placeholder.sync {
    background: linear-gradient(45deg, #ff9800, #f57c00);
    font-size: 2rem;
}

.page-card:hover .fina-placeholder {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Shopify form styles */
.shopify-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.shopify-form .form-group {
    margin-bottom: 25px;
}

.shopify-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.shopify-form select:focus {
    outline: none;
    border-color: #64b5f6;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.2);
}

.shopify-form select option {
    background: #1a1a2e;
    color: #ffffff;
    padding: 8px;
}

.input-hint {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-style: italic;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(45deg, #4caf50, #45a049);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    margin-top: 10px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.submit-btn:disabled {
    background: linear-gradient(45deg, #666, #555);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Forms section styles */
.forms-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.forms-section h3 {
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 300;
    color: #64b5f6;
    text-align: center;
}

.form-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-container h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #ffffff;
}

.form-description {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-style: italic;
}

.api-form {
    max-width: 400px;
    margin: 0 auto;
}

.api-form .form-group {
    margin-bottom: 20px;
}

.api-form input[type="text"],
.api-form input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.api-form input:focus {
    outline: none;
    border-color: #64b5f6;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.2);
}

.api-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
