/* Gemeinsame Stile für den CSV Shopify Importer */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #343a40;
    color: white;
    padding: 1rem 0;
    margin-bottom: 20px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 10px 20px;
    max-width: 1160px; /* 1200px - 20px padding on each side */
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
}

/* Mobile menu button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Navigation links */
.nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

/* FTP File buttons */
.d-flex.flex-wrap.gap-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.d-flex.flex-wrap.gap-2 .btn {
    margin-bottom: 10px;
    white-space: nowrap;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Mobile styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #343a40;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        border-radius: 0 0 8px 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links .nav-btn {
        width: 100%;
        text-align: center;
        padding: 12px 15px;
        border-radius: 4px;
        background-color: white;
        color: #333;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
    }
    
    .nav-links .logout-btn {
        background-color: #dc3545;
        color: white;
    }
}

.nav-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: white;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: 1px solid #ddd;
    text-align: center;
}

.nav-btn:hover {
    background-color: #e9ecef;
    text-decoration: none;
}

.nav-btn:active {
    background-color: #dee2e6;
}

/* Removed underline from nav links */

.logout-btn {
    background-color: #dc3545;
    color: white;
    border: 1px solid #c82333;
    margin-left: 0;
    transition: background-color 0.2s ease;
}

.logout-btn:hover {
    background-color: #c82333;
    text-decoration: none;
}

.logout-btn:active {
    background-color: #bd2130;
}

.logout-btn:hover {
    background-color: #c82333;
    text-decoration: none;
}

.card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.card-header h2 {
    margin: 0;
}

/* Primary action buttons (CTAs) */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    background: #45a049;
}

/* Secondary/back buttons */
.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: normal;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.btn-warning {
    background: #ff9800;
}

.btn-warning:hover {
    background: #e68a00;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.success {
    color: #28a745;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #d4edda;
    border-radius: 4px;
}

.error {
    color: #dc3545;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f8d7da;
    border-radius: 4px;
}

.warning {
    color: #ffc107;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #fff3cd;
    border-radius: 4px;
}

pre {
    background: #f5f5f5;
    padding: 10px;
    border: 1px solid #ddd;
    overflow: auto;
    border-radius: 4px;
}

/* Responsive table wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 400px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    scrollbar-width: thin;
    scrollbar-color: #6c757d #f8f9fa;
}

/* Custom scrollbar for WebKit browsers */
.table-responsive::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background-color: #6c757d;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background-color: #5a6268;
}

table {
    border-collapse: collapse;
    width: 100%;
    table-layout: auto;
    white-space: nowrap;
    margin-bottom: 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    color: #6c757d;
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
}

.flex-container {
    display: flex;
    gap: 20px;
}

/* Spezifischer Stil für Konfigurationsansicht */
.card .flex-container {
    gap: 10px;
}

.flex-item h3 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 8px;
}

.flex-item {
    flex: 1;
}

@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
    }
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.dashboard-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: auto;
}

.card-content h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.card-content p {
    color: #555;
    line-height: 1.4;
    margin-bottom: 6px;
}

.card-content p:last-child {
    margin-bottom: 0;
}

.card-actions {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.card-actions .btn {
    display: inline-block;
    width: auto;
    min-width: 180px;
    text-align: center;
    margin: 0 auto;
    padding: 8px 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-card {
        margin-bottom: 20px;
    }
    
    .login-container {
        padding: 20px 15px;
    }
    
    .login-card {
        padding: 20px 15px;
    }
    
    .login-form input[type="email"],
    .login-form input[type="password"] {
        font-size: 14px;
        padding: 8px 8px 8px 32px;
    }
    
    .login-btn {
        padding: 10px 15px;
        font-size: 15px;
    }
}

/* Konfigurationstabellen Styles */
.config-table {
    font-size: 0.85rem;
}

.config-table th, .config-table td {
    padding: 4px 6px;
    white-space: nowrap;
}

/* Login page styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.login-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 450px;
    padding: 30px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #343a40;
    margin-bottom: 10px;
    font-size: 28px;
}

.login-header p {
    color: #6c757d;
    margin: 0;
}

.login-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 5px;
    border-left: 4px solid #dc3545;
    margin-bottom: 20px;
    font-size: 14px;
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.input-with-icon {
    position: relative;
}

.input-with-icon .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-style: normal;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    max-width: 100%;
    padding: 10px 10px 10px 36px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s;
    display: block;
    box-sizing: border-box;
}

.login-form input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
}

.login-form input::placeholder {
    color: #adb5bd;
}

.form-footer {
    text-align: center;
    margin-top: 30px;
}

.login-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
}

.login-btn:hover {
    background-color: #45a049;
}
