/* Amelia Location Manager Styles */
.alm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.alm-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e1e5e9;
}

.alm-tabs {
    display: flex;
    border-bottom: 2px solid #f1f3f4;
    margin-bottom: 30px;
}

.alm-tab {
    background: none;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #5f6368;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.alm-tab.active {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
}

.alm-tab:hover {
    color: #1a73e8;
    background-color: #f8f9fa;
}

.alm-tab-content {
    display: none;
}

.alm-tab-content.active {
    display: block;
}

.alm-form-group {
    margin-bottom: 25px;
}

.alm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #202124;
}

.alm-form-group input,
.alm-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dadce0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.alm-form-group input:focus,
.alm-form-group textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.alm-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.alm-form-row {
    display: flex;
    gap: 20px;
}

.alm-form-row .alm-form-group {
    flex: 1;
}

.alm-btn {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.alm-btn:hover {
    background: #1557b0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.alm-btn:disabled {
    background: #dadce0;
    color: #5f6368;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.alm-btn-secondary {
    background: #fff;
    color: #1a73e8;
    border: 2px solid #1a73e8;
}

.alm-btn-secondary:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

.alm-btn-danger {
    background: #ea4335;
}

.alm-btn-danger:hover {
    background: #d33b2c;
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.3);
}

.alm-alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alm-alert-success {
    background: #e8f5e8;
    color: #137333;
    border: 1px solid #c6f6d5;
}

.alm-alert-error {
    background: #fce8e6;
    color: #d93025;
    border: 1px solid #fecaca;
}

.alm-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.alm-location-card {
    background: #fff;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.alm-location-card:hover {
    border-color: #1a73e8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.alm-location-card h3 {
    margin: 0 0 10px 0;
    color: #202124;
    font-size: 18px;
    font-weight: 600;
}

.alm-location-card p {
    margin: 5px 0;
    color: #5f6368;
    font-size: 14px;
}

.alm-location-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.alm-location-actions .alm-btn {
    padding: 8px 16px;
    font-size: 12px;
}

.alm-loading {
    text-align: center;
    padding: 40px;
    color: #5f6368;
}

.alm-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #dadce0;
    border-radius: 50%;
    border-top-color: #1a73e8;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.alm-user-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alm-user-info h3 {
    margin: 0;
    color: #202124;
}

.alm-logout-btn {
    background: #5f6368;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.alm-logout-btn:hover {
    background: #3c4043;
}

/* Map Container */
.alm-map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e8eaed;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .alm-container {
        padding: 15px;
    }
    
    .alm-card {
        padding: 20px;
    }
    
    .alm-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .alm-tabs {
        flex-wrap: wrap;
    }
    
    .alm-tab {
        flex: 1;
        min-width: 120px;
    }
    
    .alm-locations-grid {
        grid-template-columns: 1fr;
    }
    
    .alm-user-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Animation für Fade In */
.alm-fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Utilities */
.alm-text-center {
    text-align: center;
}

.alm-mt-20 {
    margin-top: 20px;
}

.alm-mb-20 {
    margin-bottom: 20px;
}

.alm-hidden {
    display: none !important;
}
