.leihsystem-device-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.leihsystem-shortcode {
    margin: 20px 0;
    padding: 0;
}

.leihsystem-login-required {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.leihsystem-login-required p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #666;
}

.leihsystem-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 30px;
}

.leihsystem-device-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.leihsystem-device-header h1 {
    margin: 0 0 10px 0;
    font-size: 2em;
    color: #333;
}

.device-type {
    color: #666;
    font-size: 1.1em;
    margin: 0;
}

.leihsystem-device-info {
    margin-bottom: 30px;
}

.device-status-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.device-status-card h2 {
    margin-top: 0;
    font-size: 1.2em;
    color: #333;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
}

.status-indicator.status-available {
    background: #d4edda;
    color: #155724;
}

.status-indicator.status-borrowed {
    background: #f8d7da;
    color: #721c24;
}

.status-icon {
    font-size: 2em;
}

.status-text {
    font-size: 1.3em;
    font-weight: 600;
}

.borrower-info {
    margin: 10px 0 0 0;
    font-size: 0.9em;
}

.device-description {
    margin-top: 20px;
}

.device-description h3 {
    margin-bottom: 10px;
    color: #333;
}

.device-description p {
    color: #666;
    line-height: 1.6;
}

.leihsystem-device-actions {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 6px;
}

.action-section h2 {
    margin-top: 0;
    color: #333;
}

.leihsystem-borrow-form {
    margin-top: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.leihsystem-input {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.leihsystem-button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.leihsystem-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.leihsystem-button-borrow {
    background: #28a745;
    color: #fff;
}

.leihsystem-button-borrow:hover {
    background: #218838;
}

.leihsystem-button-return {
    background: #dc3545;
    color: #fff;
}

.leihsystem-button-return:hover {
    background: #c82333;
}

.leihsystem-device-history {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.leihsystem-device-history h2 {
    margin-bottom: 20px;
    color: #333;
}

.leihsystem-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.leihsystem-history-table th,
.leihsystem-history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.leihsystem-history-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.history-action {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.9em;
    font-weight: 600;
}

.history-action.action-borrowed {
    background: #fff3cd;
    color: #856404;
}

.history-action.action-returned {
    background: #d1ecf1;
    color: #0c5460;
}

.leihsystem-messages {
    margin-top: 20px;
}

.leihsystem-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.leihsystem-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.leihsystem-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.leihsystem-create-device-form {
    margin-top: 20px;
}

.info-message {
    background: #e7f3ff;
    border-left: 4px solid #2271b1;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.info-message strong {
    color: #2271b1;
}

.leihsystem-form {
    margin-top: 20px;
}

.leihsystem-form .form-group {
    margin-bottom: 20px;
}

.leihsystem-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.leihsystem-form .required {
    color: #dc3232;
}

.leihsystem-form .leihsystem-input {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.leihsystem-form .leihsystem-input[readonly] {
    background: #f5f5f5;
    color: #666;
}

.leihsystem-form .description {
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

.leihsystem-form textarea.leihsystem-input {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    margin-top: 25px;
}

.leihsystem-button-primary {
    background: #2271b1;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.leihsystem-button-primary:hover {
    background: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.leihsystem-button-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.leihsystem-verwaltung-tabs {
    display: flex;
    gap: 10px;
    margin: 30px 0 20px 0;
    border-bottom: 2px solid #f0f0f0;
}

.tab-button {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #2271b1;
}

.tab-button.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.leihsystem-verwaltung-section {
    margin-top: 20px;
}

.info-text {
    margin-bottom: 20px;
    color: #666;
}

.no-devices {
    padding: 20px;
    text-align: center;
    color: #666;
    background: #f5f5f5;
    border-radius: 4px;
}

.devices-selection {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.selection-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.selection-header label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.devices-list {
    max-height: 400px;
    overflow-y: auto;
}

.device-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.device-checkbox-label:hover {
    background: #f0f0f0;
}

.device-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.device-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.device-info strong {
    color: #333;
    font-size: 1em;
}

.device-meta {
    font-size: 0.9em;
    color: #666;
}

.device-meta code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.borrower-group {
    margin-top: 20px;
}

@media (max-width: 600px) {
    .leihsystem-device-page {
        margin: 20px;
        padding: 10px;
    }
    
    .leihsystem-container {
        padding: 20px;
    }
    
    .status-indicator {
        flex-direction: column;
        text-align: center;
    }
    
    .leihsystem-form .leihsystem-input {
        max-width: 100%;
    }
    
    .tab-button {
        padding: 10px 16px;
        font-size: 0.9em;
    }
    
    .devices-list {
        max-height: 300px;
    }
}

