:root {
    --bg-color: #ffffff;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-color: #dadce0;
    --hover-bg: #f8f9fa;
    --card-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    --card-hover-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
    
    /* Google Colors */
    --g-blue: #4285F4;
    --g-red: #EA4335;
    --g-yellow: #FBBC05;
    --g-green: #34A853;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Google Sans', 'Roboto', arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px 40px;
    background-color: var(--bg-color);
}

.logo {
    font-size: 56px;
    font-weight: 500;
    letter-spacing: -1.5px;
    margin-bottom: 30px;
    user-select: none;
    font-family: 'Google Sans', sans-serif;
}

.g-blue { color: var(--g-blue); }
.g-red { color: var(--g-red); }
.g-yellow { color: var(--g-yellow); }
.g-green { color: var(--g-green); }

.search-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 584px;
    height: 48px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 0 14px 0 14px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.search-container:hover, .search-container:focus-within {
    box-shadow: 0 1px 6px rgba(32,33,36,.28);
    border-color: rgba(223,225,229,0);
}

.search-icon {
    width: 20px;
    height: 20px;
    fill: #9aa0a6;
    margin-right: 12px;
}

#searchInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-primary);
    background: transparent;
}

.clear-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.clear-icon svg {
    width: 20px;
    height: 20px;
    fill: #70757a;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-2px);
    border-color: transparent;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    font-family: 'Google Sans', sans-serif;
}

.card-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.2;
}

.card-actions {
    margin-top: auto;
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border 0.2s, box-shadow 0.2s;
    font-family: "Google Sans", sans-serif;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--g-blue);
    color: white;
}

.btn-primary:hover {
    background-color: #1a73e8;
    box-shadow: 0 1px 2px 0 rgba(66,133,244,0.3), 0 1px 3px 1px rgba(66,133,244,0.15);
}

.btn-secondary {
    background-color: #fff;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--hover-bg);
}

.btn-icon {
    margin-right: 6px;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.4s ease-out backwards;
}
