/* assets/css/styles.css */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5f7fa;
    color: #333;
}

/* Layout */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    color: #7f8c8d;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* Input Section */
.input-section {
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

input {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

input:focus {
    border-color: #3498db;
    outline: none;
}

/* Buttons */
button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

.primary-button {
    background-color: #3498db;
    color: white;
}

.primary-button:hover {
    background-color: #2980b9;
}

.sync-button {
    background-color: #2ecc71;
    color: white;
}

.delete-button {
    background-color: #e74c3c;
    color: white;
}

/* Companies Grid */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.company-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

.company-header {
    margin-bottom: 15px;
}

.company-name {
    font-size: 18px;
    color: #2c3e50;
}

.cvr-number {
    color: #7f8c8d;
    font-size: 14px;
}

.company-details {
    margin-bottom: 15px;
}

.company-actions {
    display: flex;
    gap: 10px;
}

/* States */
.hidden {
    display: none;
}

.loading-state, .empty-state {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

/* Messages */
.message-area {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
}

.error-message {
    background-color: #fde8e8;
    color: #e74c3c;
    padding: 10px;
    border-radius: 4px;
}

.success-message {
    background-color: #e8f8e8;
    color: #2ecc71;
    padding: 10px;
    border-radius: 4px;
}

/* Search and Filter Styles */
.search-filter-section {
    margin-bottom: 20px;
}

.search-controls {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.search-group {
    flex: 2;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-group {
    flex: 1;
    display: flex;
    gap: 10px;
}

.filter-select {
    flex: 1;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
}

.filter-select:hover {
    border-color: #3498db;
}

.search-input:focus,
.filter-select:focus {
    border-color: #3498db;
    outline: none;
}

/* Responsive styles */
@media (max-width: 768px) {
    .search-controls {
        flex-direction: column;
    }
    
    .search-group,
    .filter-group {
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
}
