@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

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

body {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #333;
    background: #f5f5f5;
}

a {
    color: #3b7dbc;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #3b7dbc;
    color: #fff;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);

}

.sidebar-header img {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
}

.sidebar-menu a:hover {
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}

.sidebar-menu a.active {
    background: rgba(255,255,255,0.2);
}

.sidebar-section {
    padding: 10px 20px 5px;
    font-size: 12px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

.main-content {
    flex: 1;
    margin-left: 250px;
}

.topbar {
    background: #fff;
    padding: 15px 30px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-logo img {
    height: 40px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-user a {
    color: #666;
}

.content {
    padding: 30px;
}

.page-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #333;
}

.card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-weight: 500;
}

.card-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #3b7dbc;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    appearance: none;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23333" d="M6 8L1 3h10z"/></svg>') no-repeat right 12px center;
    padding-right: 35px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #343e49;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    text-decoration: none;
}

.btn:hover {
    background: #444e59;
    text-decoration: none;
    color: #fff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background: #f8f9fa;
    font-weight: 500;
}

.table tr:hover {
    background: #f8f9fa;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #28a745;
    color: #fff;
}

.badge-warning {
    background: #ffc107;
    color: #333;
}

.badge-danger {
    background: #dc3545;
    color: #fff;
}

.badge-secondary {
    background: #6c757d;
    color: #fff;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check input {
    width: auto;
}

.actions {
    display: flex;
    gap: 10px;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3b7dbc;
    background-image: url("../img/bg.svg");
    background-size: max(100%, 2000px);
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-box .logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-box .logo img {
    max-width: 180px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
}

.login-box .btn {
    width: 100%;
}

.login-box .links {
    text-align: center;
    margin-top: 20px;
}

.login-box .links a {
    color: #666;
    font-size: 13px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
}

.status-active {
    color: #28a745;
}

.status-inactive {
    color: #dc3545;
}

.status-pending {
    color: #ffc107;
}

.api-key {
    font-family: monospace;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    word-break: break-all;
}

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .wrapper {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
    }
}

/* Cart Page */
.cart-wrapper {
    min-height: 100vh;
    background: #f5f5f5;
    padding: 40px 20px;
}

.cart-container {
    max-width: 900px;
    margin: 0 auto;
}

.cart-header {
    text-align: center;
    margin-bottom: 30px;
}

.cart-header img {
    max-width: 150px;
    margin-bottom: 20px;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.product-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.product-service {
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.product-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-meta-item {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
}

.product-meta-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.product-meta-value {
    font-weight: 600;
    color: #1a1a2e;
}

.product-description {
    color: #555;
    line-height: 1.6;
}

.order-summary {
    position: sticky;
    top: 20px;
}

.order-summary h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.price-row.discount {
    color: #28a745;
}

.price-row.total {
    font-size: 20px;
    font-weight: 700;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #eee;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.discount-badge {
    background: #28a745;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-left: 10px;
}

.discount-form {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.discount-input-row {
    display: flex;
    gap: 10px;
}

.discount-input-row input {
    flex: 1;
}

.discount-input-row .btn {
    white-space: nowrap;
}

.discount-applied {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.discount-remove {
    background: none;
    border: none;
    color: #155724;
    cursor: pointer;
    font-size: 18px;
}

.btn-full {
    width: 100%;
padding: 15px 0 15px 0;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 16px;
}

.login-prompt {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #666;
}

.login-prompt a {
    color: #3b7dbc;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty h2 {
    margin-bottom: 15px;
    color: #333;
}

.cart-empty p {
    color: #666;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
    }
    
    .product-meta {
        flex-direction: column;
    }
}