/* StockMaster custom styles - works alongside Infinity template */

/* Dashboard container */
.dashboard-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Cards */
.sm-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 20px;
}

.sm-card h5 {
    color: #000;
    font-size: 22px;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

/* Alerts */
.alert-error {
    background: #fdecea;
    color: #e74c3c;
    border: 1px solid #f5c6cb;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 14px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 14px;
    font-size: 14px;
}

/* Table styles for dashboard */
.sm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.sm-table th {
    background: #1c1d21;
    color: #fff;
    padding: 10px 12px;
    text-align: left;
    font-size: 13px;
    letter-spacing: .5px;
}

.sm-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.sm-table tr:hover {
    background: #f9f9f9;
}

/* Badges */
.badge-active {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #d4edda;
    color: #155724;
}

.badge-disabled {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #fdecea;
    color: #e74c3c;
}

/* Action buttons */
.btn-action {
    display: inline-block;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    letter-spacing: .5px;
}

.btn-action:hover {
    opacity: .8;
    text-decoration: none;
    color: #fff;
}

.btn-edit { background: #3498db; }
.btn-disable { background: #e74c3c; }
.btn-enable { background: #27ae60; }
.btn-delete { background: #c0392b; }
.btn-save { background: #27ae60; }
.btn-cancel { background: #3498db; }

/* Form grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

/* Welcome text */
.welcome-text {
    font-size: 15px;
    color: #999;
    letter-spacing: .5px;
}

/* Tab navigation for login/signup */
.login-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.login-tabs a {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #999;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    text-decoration: none;
}

.login-tabs a.active,
.login-tabs a:hover {
    color: #ff3f34;
    border-bottom-color: #ff3f34;
}

/* Override form-control for dashboard forms */
.sm-card .form-control {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
}

.sm-card .form-control:focus {
    border-color: #ff3f34;
    box-shadow: 0 0 0 2px rgba(255, 63, 52, 0.1);
}

/* mt helpers */
.mt-20 { margin-top: 20px; }
