/* Inventory Page Styles */

/* Table Header */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.add-asset-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-asset-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Dynamic Input Fields */
.hdd-input,
.program-input,
.license-input {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.add-hdd-btn,
.add-program-btn,
.add-license-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-hdd-btn:hover,
.add-program-btn:hover,
.add-license-btn:hover {
    transform: rotate(90deg);
    background: var(--primary-color);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.cancel-btn,
.save-btn {
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
}

.save-btn {
    background: var(--primary-color);
    border: none;
    color: white;
}

.cancel-btn:hover {
    background: #eee;
}

.save-btn:hover {
    background: var(--accent-color);
}

/* Action Buttons in Table */
.action-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    padding: 5px;
}

.action-btn:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Status Tags */
.status-tag {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
}

.status-warning {
    background: rgba(255, 171, 0, 0.1);
    color: #ffab00;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }

    .hdd-input,
    .program-input,
    .license-input {
        flex-direction: column;
    }

    .add-hdd-btn,
    .add-program-btn,
    .add-license-btn {
        align-self: flex-end;
    }
} 