/* Simple Inventory Manager Styles */

.iam-simple {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.iam-simple-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f0f0f0;
}

.iam-simple-header h1 {
    color: #2c3e50;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.iam-btn-add {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.iam-btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.iam-quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.iam-stat {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.iam-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.iam-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.iam-items-simple {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.iam-item-simple {
    background: white;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
}

.iam-item-simple:hover {
    border-color: #999;
}

.iam-item-header {
    margin-bottom: 15px;
}

.iam-item-header h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.iam-item-header h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.iam-item-header h3 a:hover {
    color: #667eea;
}

.iam-sku {
    background: #ecf0f1;
    color: #7f8c8d;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.iam-item-qty {
    text-align: center;
    margin: 20px 0;
}

.iam-qty-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 5px;
}

.iam-qty-number.low-stock {
    color: #e74c3c;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.iam-qty-label {
    color: #7f8c8d;
    font-size: 14px;
}

.iam-item-actions {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

.iam-btn-stock-in,
.iam-btn-stock-out {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.iam-qty-input {
    width: 50px;
    height: 35px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    margin: 0 5px;
    padding: 0;
    box-sizing: border-box;
}

.iam-btn-stock-in {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.iam-btn-stock-out {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.iam-btn-stock-in:hover,
.iam-btn-stock-out:hover {
    transform: scale(1.1);
}

/* Modal Styles */
.iam-form-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.iam-form-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.iam-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.iam-close:hover {
    color: #000;
}

.iam-form-content h2 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    text-align: center;
}

.iam-form-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.iam-form-content input,
.iam-form-content select {
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.iam-form-content input:focus,
.iam-form-content select:focus {
    outline: none;
    border-color: #667eea;
}

.iam-form-content button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.iam-form-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.iam-item-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

/* Search Section */
.iam-search-section {
    margin-bottom: 20px;
}

.iam-search-section form {
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: 500px;
}

.iam-search-section input[type="text"] {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    font-size: 16px;
}

.iam-search-section button {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}

.iam-search-section a {
    color: #dc3545;
    text-decoration: none;
    font-weight: 600;
    padding: 10px;
}

/* Pagination */
.iam-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.iam-pagination a {
    padding: 8px 12px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.iam-pagination a:hover,
.iam-pagination a.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Search Results Header */
.iam-search-results-header {
    margin: 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.iam-search-results-header h3 {
    color: #495057;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .iam-items-simple {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .iam-simple {
        padding: 10px;
    }
    
    .iam-simple-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .iam-items-simple {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 10px;
    }
    
    .iam-form-content {
        margin: 10% auto;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .iam-items-simple {
        grid-template-columns: 1fr 1fr;
    }
}