/* systems/storage/css/storage.css */

/* General Styles */
.storage-container {
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Header Styles */
.storage-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.storage-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.storage-header p {
    margin: 10px 0 0;
    opacity: 0.9;
}

/* Search Section */
.search-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1.2rem;
}

.search-box input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

/* Item Card */
.item-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.item-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    position: relative;
}

.item-code {
    font-size: 0.85rem;
    opacity: 0.9;
    font-family: monospace;
    margin-bottom: 5px;
}

.item-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.item-card-body {
    padding: 20px;
}

.item-category {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
}

.temp-display {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
}

.temp-display .temp-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.temp-display .temp-value {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Temperature Color Classes */
.temp-freezing {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.temp-cold {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.temp-cool {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #1a1a2e;
}

.temp-moderate {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #1a1a2e;
}

.temp-warm {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

/* Modal Styles */
.item-modal .modal-content {
    border-radius: 20px;
    overflow: hidden;
}

.item-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.item-modal .modal-body {
    padding: 30px;
}

.detail-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-label {
    font-weight: 600;
    width: 40%;
    color: #666;
}

.detail-value {
    width: 60%;
    color: #333;
}

.temp-large {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    margin-top: 15px;
}

.temp-large .temp-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.temp-large .temp-value {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Admin Table Styles */
.admin-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.admin-table th {
    background: #f8f9fa;
    padding: 15px;
    font-weight: 600;
}

.admin-table td {
    padding: 12px 15px;
    vertical-align: middle;
}

.btn-action {
    padding: 5px 10px;
    margin: 0 3px;
    border-radius: 8px;
}

/* Form Styles */
.form-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* Alert Messages */
.alert-custom {
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .storage-header {
        padding: 20px;
    }
    
    .storage-header h1 {
        font-size: 1.5rem;
    }
}