/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3182ce;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2563eb;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.9em;
}

.btn-large {
    padding: 12px 24px;
}

.btn-full-width {
    width: 100%;
    padding: 12px;
    font-weight: 600;
}

/* Button variants */
.btn-secondary {
    background-color: #6b7280;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-edit {
    background-color: #10b981;
}

.btn-edit:hover {
    background-color: #059669;
}

.btn-delete {
    background-color: #ef4444;
}

.btn-delete:hover {
    background-color: #dc2626;
}

.btn-toggle {
    background-color: #10b981;
}

.btn-toggle:hover {
    background-color: #059669;
}

.btn-toggle.inactive {
    background-color: #6b7280;
}

.btn-toggle.inactive:hover {
    background-color: #4b5563;
}

/* Stats cards */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #1a365d;
}

.stat-label {
    color: #666;
    font-size: 0.85em;
    margin-top: 5px;
}

/* Tables */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    min-width: 1000px;
}

th, td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9em;
}

th {
    background-color: #f3f4f6;
    font-weight: 600;
    color: #374151;
    position: sticky;
    top: 0;
}

tr:hover {
    background-color: #f9fafb;
}

/* Battery indicators */
.battery-indicator {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 500;
}

.battery-low {
    background-color: #fee2e2;
    color: #991b1b;
}

.battery-medium {
    background-color: #fef3c7;
    color: #92400e;
}

.battery-high {
    background-color: #d1fae5;
    color: #065f46;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-left: 10px;
}

.status-active {
    background-color: #d1fae5;
    color: #065f46;
}

.status-inactive {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Metrics */
.metric-highlight {
    color: #059669;
    font-weight: 500;
}

.metric-muted {
    color: #9ca3af;
}

/* Lists */
.list-unstyled {
    list-style: none;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-content {
    font-size: 1.1em;
    flex: 1;
}

.list-item-content.inactive {
    opacity: 0.5;
    text-decoration: line-through;
}

.list-item-actions {
    display: flex;
    gap: 10px;
}

/* Actions */
.actions {
    margin-bottom: 20px;
    text-align: right;
}

/* Forms specifici */
.add-form {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.add-form input {
    flex: 1;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
}

.remember-me label {
    margin-bottom: 0;
    font-weight: normal;
    color: #6b7280;
}

/* Password requirements */
.password-requirements {
    background-color: #f3f4f6;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.password-requirements h3 {
    font-size: 1em;
    margin-bottom: 10px;
    color: #374151;
}

.password-requirements ul {
    list-style: none;
    font-size: 0.9em;
    color: #6b7280;
}

.password-requirements li:before {
    content: "✓ ";
    color: #10b981;
    font-weight: bold;
}