* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e45326 0%, #0098cb 100%);
    min-height: 100vh;
    padding: 20px;
}
.container { max-width: 1300px; margin: 0 auto; }
.header { text-align: center; color: white; margin-bottom: 30px; }
.header h1 { font-size: 2.5em; text-shadow: 2px 2px 4px rgba(0,0,0,0.2); }
.header p { opacity: 0.9; }

.tabs {
    display: flex; gap: 10px; margin-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.5); padding-bottom: 10px;
}
.tab {
    padding: 10px 30px; background: rgba(255,255,255,0.25);
    border-radius: 10px 10px 0 0; color: white; text-decoration: none;
    font-weight: 600; transition: 0.3s; cursor: pointer; border: none; font-size: 16px;
}
.tab.active { background: white; color: #0098cb; }
.tab-content { display: none; }
.tab-content.active { display: block; }

.card {
    background: white; border-radius: 15px; padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); margin-bottom: 30px;
}
.generator-form {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.form-group label {
    display: block; margin-bottom: 5px; color: #333; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px; font-size: 14px;
}
.form-group input {
    width: 100%; padding: 12px; border: 2px solid #e0e0e0;
    border-radius: 10px; font-size: 16px; transition: 0.3s; background: #f8f9fa;
}
.form-group input:focus {
    outline: none; border-color: #0098cb; background: white;
    box-shadow: 0 0 0 3px rgba(0,152,203,0.15);
}
.btn {
    padding: 12px 24px; border: none; border-radius: 10px;
    font-size: 16px; font-weight: 600; cursor: pointer; transition: 0.3s;
    text-transform: uppercase; letter-spacing: 0.5px;
    display: inline-flex; align-items: center; justify-content: center;
}
.btn-generate {
    background: #0098cb; color: white; width: 100%; padding: 15px; font-size: 18px; margin-top: 25px;
}
.btn-generate:hover { background: #0082b3; }
.btn-export { background: #0098cb; color: white; }
.btn-export:hover { background: #0082b3; }
.btn-clear { background: #e45326; color: white; }
.btn-clear:hover { background: #c43e1e; }
.btn-copy-all { background: #0098cb; color: white; }
.btn-copy-all:hover { background: #0082b3; }
.btn-toggle-link {
    background: none; border: none; color: #0098cb; text-decoration: underline;
    cursor: pointer; font-size: 16px; padding: 0; margin-bottom: 15px; display: inline-block;
}
.advanced-settings {
    display: none; grid-template-columns: 1fr 1fr; gap: 20px;
    margin-top: 20px; padding: 20px; background: #f8f9fa;
    border-radius: 10px; border: 1px dashed #0098cb;
}
.advanced-settings.visible { display: grid; }
.stats-bar {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px; margin-bottom: 30px;
}
.stat-card {
    background: white; border-radius: 12px; padding: 20px; text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.stat-value {
    font-size: 2.5em; font-weight: bold;
    color: #0098cb;
}
.stat-label { color: #666; font-size: 14px; text-transform: uppercase; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px; margin-top: 20px;
}
.product-card {
    background: white; border-radius: 12px; padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: 0.3s;
    position: relative; border: 1px solid #f0f0f0;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,152,203,0.15); }
.product-card img { width: 100%; margin-bottom: 15px; border-radius: 5px; }
.product-number {
    position: absolute; top: 10px; right: 10px;
    background: #0098cb;
    color: white; width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 14px;
}
.product-info .field { margin-bottom: 8px; }
.field-label { font-size: 11px; text-transform: uppercase; color: #999; }
.field-value { font-weight: 500; color: #333; word-break: break-all; }
.product-actions { display: flex; gap: 5px; margin-top: 15px; }
.btn-small {
    padding: 8px 12px; font-size: 12px; border: none; border-radius: 6px;
    cursor: pointer; font-weight: 600; flex: 1;
}
.btn-copy { background: #0098cb; color: white; }
.btn-edit { background: #ffc107; color: #333; }
.btn-save { background: #28a745; color: white; }
.btn-delete { background: #e45326; color: white; }
.empty-state { text-align: center; padding: 60px 20px; color: white; }
.loading { display: none; text-align: center; padding: 40px; }
.loading.active { display: block; }
.spinner {
    border: 4px solid rgba(255,255,255,0.3); border-top: 4px solid white;
    border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.toast {
    position: fixed; top: 20px; right: 20px; padding: 15px 25px;
    border-radius: 10px; color: white; font-weight: 600; z-index: 1000;
    animation: slideIn 0.3s ease-out; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.toast-success { background: #0098cb; }
.toast-error { background: #e45326; }
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.file-upload {
    margin-top: 20px; padding: 20px; background: #f8f9fa;
    border-radius: 10px; border: 2px dashed #0098cb; text-align: center;
}
.file-upload .hint { font-size: 0.8em; color: #6c757d; margin-top: 8px; }
.pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 10px; margin-top: 20px; flex-wrap: wrap;
}
.page-btn {
    background: white; border: 1px solid #0098cb; color: #0098cb;
    padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 600;
}
.page-btn:disabled { opacity: 0.4; cursor: default; }
.search-box { margin: 20px 0; }
.search-box input {
    width: 100%; padding: 12px; border: 2px solid #e0e0e0;
    border-radius: 10px; font-size: 16px; transition: 0.3s;
}
.search-box input:focus {
    outline: none; border-color: #0098cb; background: white;
    box-shadow: 0 0 0 3px rgba(0,152,203,0.15);
}
.toolbar {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 10px; margin-bottom: 20px;
}
@media (max-width: 768px) {
    .generator-form, .advanced-settings { grid-template-columns: 1fr; }
    .header h1 { font-size: 1.8em; }
    .products-grid { grid-template-columns: 1fr; }
}