/* Style dla panelu administratora */

.navbar-admin {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.admin-badge {
    background: #ff6b35;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Admin Login Section */
.admin-login-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
}

.login-container {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
}

.login-container h2 {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

.error-message {
    color: #dc3545;
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
}

/* Admin Panel */
.admin-panel {
    min-height: 100vh;
    background: #f5f5f5;
    padding: 2rem;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Tabs */
.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: #eee;
}

.tab-btn.active {
    background: #ff6b35;
    color: white;
}

.tab-content {
    display: none;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.tab-content.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.tab-header h2 {
    color: #1a1a1a;
}

/* Products Table */
.products-table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #1a1a1a;
}

.admin-table tr:hover {
    background: #fafafa;
}

.admin-table .actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 5px;
}

.btn-edit {
    background: #17a2b8;
    color: white;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

/* Orders List */
.orders-list,
.returns-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card,
.return-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid #ff6b35;
}

.order-header,
.return-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.order-info,
.return-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.order-items,
.return-items {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.order-items h4,
.return-items h4 {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.order-items ul,
.return-items ul {
    list-style: none;
    padding: 0;
}

.order-items li,
.return-items li {
    padding: 0.3rem 0;
    color: #666;
}

.status-select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Product Filters */
.product-filters {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #ff6b35;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.product-filters select,
.product-filters input {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    background: white;
}

.product-filters select:focus,
.product-filters input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

/* Sizes Inputs Container */
.sizes-inputs-container {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #eee;
}

.sizes-grid-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.size-input-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.size-input-item label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    text-align: center;
}

.size-input-item input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    font-size: 0.95rem;
}

.size-input-item input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.9rem;
    text-align: left;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .tab-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .order-header,
    .return-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
