* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.top-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

header {
    text-align: center;
    color: white;
    flex: 1;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.stats-corner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    position: relative;
}

.controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #2196F3;
    color: white;
}

.btn-secondary:hover {
    background: #1976D2;
    transform: translateY(-2px);
}

.btn-accent {
    background: #FF9800;
    color: white;
}

.btn-accent:hover {
    background: #F57C00;
    transform: translateY(-2px);
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 32px;
    text-align: center;
    min-width: 160px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 8px;
}

.stat-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stats-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-left: 32px;
    margin-top: 8px;
}

.filters select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    min-width: 160px;
}

.search-bar {
    margin-bottom: 30px;
}

.search-bar input {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    min-width: 220px;
}

.website-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.website-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.website-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.website-card h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.website-card .url {
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
    word-break: break-all;
}

.website-card .url:hover {
    text-decoration: underline;
}

.website-card .description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.website-card .date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.website-card .status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status.active {
    background: #E8F5E8;
    color: #4CAF50;
}

.status.maintenance {
    background: #FFF3E0;
    color: #FF9800;
}

.status.archived {
    background: #FFEBEE;
    color: #F44336;
}

.card-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

.card-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.card-actions button:hover {
    background: #f0f0f0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .top-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .stats-corner {
        justify-content: center;
        margin-top: 20px;
    }
    
    .website-grid {
        grid-template-columns: 1fr;
    }
    
    .controls {
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
}/* List View Styles */
.website-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.list-header {
    background: #667eea;
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    display: grid;
    grid-template-columns: 2fr 3fr 1fr 1fr 100px;
    gap: 20px;
    align-items: center;
}

.list-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: grid;
    grid-template-columns: 2fr 3fr 1fr 1fr 100px;
    gap: 20px;
    align-items: center;
    transition: background 0.3s ease;
}

.list-item:hover {
    background: #f8f9ff;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item .url {
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
}

.list-item .url:hover {
    text-decoration: underline;
}

.list-item .description {
    color: #666;
}

.list-item .category {
    background: #E3F2FD;
    color: #1976D2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    text-align: center;
    font-weight: 500;
}

.list-item .date {
    color: #999;
    font-size: 0.9rem;
}

.list-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.list-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.list-actions button:hover {
    background: #e0e0e0;
}

/* Category Groups */
.category-group {
    margin-bottom: 30px;
}

.category-header {
    background: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    border-left: 4px solid #667eea;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-header h3 {
    color: #667eea;
    margin: 0;
    font-size: 1.2rem;
}

.category-count {
    color: #999;
    font-size: 0.9rem;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .list-header,
    .list-item {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: left;
    }
    
    .list-header {
        display: none;
    }
    
    .list-item {
        padding: 20px;
        border-bottom: 2px solid #f0f0f0;
    }
    
    .list-item > div {
        margin-bottom: 8px;
    }
    
    .list-actions {
        justify-content: flex-start;
        margin-top: 10px;
    }
}