

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 50%, #fdf2f8 100%);
    min-height: 100vh;
}

/* Login Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.logo-img {
    width: 120px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }  

.login-box {
    max-width: 400px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #ec4899, #db2777);
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.3);
}

.logo i {
    color: white;
    font-size: 2rem;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #db2777, #be185d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #6b7280;
}

.login-form {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid #fce7f3;
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #f9fafb;
    transition: all 0.2s;
    font-size: 1rem;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: #ec4899;
    background: white;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.password-input {
    position: relative;
}

.password-input button {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
}

.password-input button:hover {
    color: #6b7280;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.login-btn,
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.login-btn:hover,
.submit-btn:hover {
    background: linear-gradient(135deg, #db2777, #be185d);
    transform: translateY(-1px);
}

.login-btn:disabled,
.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.loader {
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.test-credentials {
    background: #fdf2f8;
    border: 1px solid #fce7f3;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
}

.test-credentials p {
    font-size: 0.75rem;
    color: #be185d;
    margin-bottom: 0.25rem;
}

.test-credentials p:first-child {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Dashboard Styles */
.dashboard {
    min-height: 100vh;
    background: #f9fafb;
}

.dashboard-header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e5e7eb;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ec4899, #db2777);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo i {
    color: white;
    font-size: 1.25rem;
}

.header-info h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.header-info p {
    font-size: 0.75rem;
    color: #6b7280;
}

.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.invoice-btn {
    background-color: #ff64b4;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.3s;
}

.invoice-btn:hover {
    background-color: #ff1493;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.logout-btn:hover {
    color: #111827;
    background: #f3f4f6;
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background: #e5e7eb;
    padding: 0.25rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    max-width: 400px;
}

.tab-btn {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.tab-btn.active {
    background: white;
    color: #ec4899;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover:not(.active) {
    color: #111827;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
}

.stat-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-info p {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.stat-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.pink {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.stat-icon.blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.stat-icon i {
    color: white;
    font-size: 1.5rem;
}

/* Recent Products */
.recent-products {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
}

.section-header {
    padding: 1.5rem 1.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.recent-list {
    padding: 0 1.5rem 1.5rem;
}

.empty-state {
    text-align: center;
    padding: 2rem 0;
}

.empty-state i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.add-first-product {
    background: none;
    border: none;
    color: #ec4899;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
}

.add-first-product:hover {
    color: #db2777;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.recent-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.recent-item-info {
    flex: 1;
}

.recent-item-info h4 {
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.25rem;
}

.recent-item-info p {
    font-size: 0.875rem;
    color: #6b7280;
}

.recent-item-price {
    font-weight: 600;
    color: #ec4899;
}

/* Products Grid */
.products-header {
    margin-bottom: 1.5rem;
}

.products-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.products-header p {
    color: #6b7280;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.empty-products {
    grid-column: 1 / -1;
    text-align: center;
    background: white;
    border-radius: 0.75rem;
    padding: 3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
}

.empty-products i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-products h3 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.5rem;
}

.empty-products p {
    color: #6b7280;
}

.product-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    transition: all 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-image {
    aspect-ratio: 1;
    background: #f3f4f6;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image i {
    font-size: 3rem;
    color: #d1d5db;
}

.product-category {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #fdf2f8;
    color: #be185d;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ec4899;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #f3f4f6;
}

.action-btn.view:hover {
    color: #ec4899;
    background: #fdf2f8;
}

.action-btn.edit:hover {
    color: #3b82f6;
    background: #eff6ff;
}

.action-btn.delete:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* Form Styles */
.form-container {
    max-width: 600px;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ec4899, #db2777);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-icon i {
    color: white;
    font-size: 1.25rem;
}

.form-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.form-header p {
    color: #6b7280;
}

.product-form {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.input-group textarea {
    resize: none;
}

.image-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.upload-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px dashed #d1d5db;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
}

.upload-label:hover {
    border-color: #ec4899;
    color: #ec4899;
}

.image-preview {
    flex-shrink: 0;
}

.image-preview img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-tabs {
        max-width: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .input-row {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .image-upload {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dashboard-content {
        padding: 1rem;
    }
    
    .header-content {
        padding: 0 1rem;
    }
}
