.drive-search {
    --primary-color: #1a73e8;
    --secondary-color: #4285f4;
    --accent-color: #34a853;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #3c4043;
    --light-text-color: #70757a;
    --border-color: #dadce0;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
    direction: rtl;
    text-align: right;
    font-family: 'Tajawal', Arial, sans-serif;
    background: var(--bg-color);
}

.drive-search .ds-container {
    max-width: 960px;
    margin: 60px auto;
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: 0 10px 40px var(--shadow-light);
    padding: 35px 30px;
}

.drive-search h1 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 700;
}

.drive-search h1 .fas {
    color: var(--secondary-color);
    font-size: 2.2rem;
}

.drive-search .search-form {
    display: flex;
    justify-content: center;
    margin-bottom: 35px;
}

.drive-search .input-group {
    display: flex;
    width: 100%;
    max-width: 650px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.drive-search .input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.15);
}

.drive-search input[type="text"] {
    flex-grow: 1;
    padding: 14px 20px;
    border: none;
    font-size: 1.1rem;
    outline: none;
    background: transparent;
    color: var(--text-color);
    text-align: right;
}

.drive-search input[type="text"]::placeholder {
    color: var(--light-text-color);
    text-align: right;
}

.drive-search .search-button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 14px 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}

.drive-search .search-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.drive-search .search-button:active {
    transform: translateY(0);
}

.drive-search .loader-bar {
    display: none;
    margin-bottom: 25px;
    text-align: center;
}

.drive-search .loader-bg {
    width: 80%;
    margin: 0 auto 8px auto;
    background: #e9e9e9;
    border-radius: 8px;
    height: 16px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.drive-search .progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    animation: loaderAnim 1.5s linear infinite;
    box-shadow: 0 0 10px rgba(26, 115, 232, 0.5);
}

@keyframes loaderAnim {
    0% { width: 0%; transform: translateX(-100%); }
    50% { width: 100%; transform: translateX(0%); }
    100% { width: 0%; transform: translateX(100%); }
}

.drive-search .loader-text {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: bold;
}

.drive-search .stats-card {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background: #e8f0fe;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.drive-search .stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-size: 1.1rem;
    padding: 10px 15px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 8px;
}

.drive-search .stat-item .fas {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.drive-search .stat-item strong {
    font-weight: 700;
    color: var(--primary-color);
}

.drive-search .notice-box {
    padding: 18px 25px;
    margin-bottom: 25px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.drive-search .notice-box.error {
    background: #ffe0e0;
    color: #d32f2f;
    border: 1px solid #d32f2f;
}

.drive-search .notice-box.error .fas {
    color: #d32f2f;
}

.drive-search .no-results {
    text-align: center;
    color: var(--light-text-color);
    font-size: 1.2rem;
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.drive-search .no-results .fas {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ccc;
}

.drive-search .results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.drive-search .result-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.drive-search .result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.drive-search .card-header {
    background: #f0f6ff;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
}

.drive-search .card-title {
    margin: 0;
    font-size: 1.35rem;
    color: var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
}

.drive-search .card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.drive-search .card-event {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--light-text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.drive-search .card-event .fas {
    color: var(--primary-color);
    font-size: 1.15rem;
}

.drive-search .card-event span {
    font-weight: 600;
    color: var(--text-color);
}

.drive-search .view-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-color);
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
    transition: background 0.3s ease, transform 0.2s ease;
    align-self: flex-start;
}

.drive-search .view-link:hover {
    background: #2e7d32;
    transform: translateY(-1px);
}

.drive-search .view-link .fas {
    font-size: 1rem;
}

.drive-search .pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0 20px 0;
}

.drive-search .pagination-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #e8f0fe;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 9px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.drive-search .pagination-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.2);
}

.drive-search .pagination-link .fas {
    font-size: 0.9rem;
    margin-right: 5px;
}

@media (max-width: 768px) {
    .drive-search .ds-container {
        margin: 30px auto;
        padding: 25px 15px;
    }
    .drive-search h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .drive-search h1 .fas {
        font-size: 1.8rem;
    }
    .drive-search .input-group {
        flex-direction: column;
        border: none;
        box-shadow: none;
    }
    .drive-search input[type="text"] {
        border: 1px solid var(--border-color);
        border-radius: 10px;
        margin-bottom: 15px;
        padding: 12px 18px;
        font-size: 1rem;
    }
    .drive-search .search-button {
        width: 100%;
        border-radius: 10px;
        padding: 12px 20px;
        font-size: 1rem;
    }
    .drive-search .stats-card {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }
    .drive-search .stat-item {
        margin: 5px 0;
        justify-content: center;
        padding: 12px;
        font-size: 1rem;
    }
    .drive-search .notice-box {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .drive-search .results-grid {
        grid-template-columns: 1fr;
    }
    .drive-search .card-title {
        font-size: 1.2rem;
    }
    .drive-search .view-link {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .drive-search .pagination-link {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .drive-search .ds-container {
        margin: 20px 10px;
        padding: 20px 10px;
        border-radius: 15px;
    }
    .drive-search h1 {
        font-size: 1.8rem;
        margin-bottom: 25px;
        gap: 10px;
    }
    .drive-search h1 .fas {
        font-size: 1.6rem;
    }
    .drive-search .loader-bg {
        width: 95%;
    }
    .drive-search .no-results .fas {
        font-size: 2.5rem;
    }
    .drive-search .no-results p {
        font-size: 1.05rem;
    }
}
