@import url('https://fonts.googleapis.com/css2?family=Tiro+Bangla&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
    --primary-color: #1a512c;
    --secondary-color: #f0f2f5;
    --accent-color: #ff3b3b;
    --text-color: #333;
    --light-text: #666;
    --card-bg: white;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #F3FDF4;
    color: var(--text-color);
    line-height: 1.6;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    padding-left: 20px;    
}
.logo-container span {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 900;
}
.logo {
    height: 60px;
    margin-right: 10px; 
}

.header-buttons {
    display: flex;
    gap: 20px;
    padding-right: 20px;
}

.header-button {
    width: 100px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.likes {
    background-color: #DBFCE7;
    color: black;
}

.stars {
    background-color: #DBFCE7;
    color: black;
}

.copy-button {
    background-color: #00A63E;
    color: white;
}

.icon-img {
    width: 30px;
    height: 20px;
    margin-right: 5px;
    object-fit: contain;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(90deg, #013223 0%, #006747 50%, #013223 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.main-logo {
    height: 100px;
    margin-bottom: 20px;
}

.title {
    font-family: 'Tiro Bangla', serif;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.subtitle {
    margin-top: 10px;
    font-size: 20px;
}

/* Main Content Layout */
.content-wrapper {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .content-wrapper {
        flex-direction: row;
    }
    
    /* Mobile-history-container*/
    .history-container {
        order: 2;
        width: 300px;
        top: 90px;
        height: auto;
    }
    
    .main-container {
        order: 1;
        flex: 1;
    }
}

/* On mobile */
@media (max-width: 991px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .history-container {
        order: 1;
    }
    
    .main-container {
        order: 2;
    }
}


/* Cards Grid */
.main-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.card-icon {
    background-color: #ffe6e6;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.police-card-icon {
    background-color: #DFEFFF;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.card-icon .icon-img {
    width: 24px;
    height: 24px;
    margin: 0;
}

.favorite-icon .icon-img {
    width: 20px;
    height: 20px;
}

.card-details {
    margin-top: 15px;
}

.card-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
}

.card-title-bangla {
    font-family: 'Tiro Bangla', serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
}

.card-subtitle {
    font-size: 14px;
    color: var(--light-text);
    margin: 5px 0 0;
}

.card-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.card-number-bangla {
    font-family: 'Tiro Bangla', serif;
    font-size: 18px;
    color: #6A7282;
    width: 100px;
    padding: 10px;
    border-radius: 40px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: opacity 0.3s;
    background-color: #F3F4F6;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.copy-btn, .call-btn {
    padding: 10px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    border: none;
    transition: opacity 0.3s;
}

.copy-btn:hover, .call-btn:hover {
    opacity: 0.9;
}

.copy-btn {
    background-color: #e9ecef;
    color: #555;
}

.call-btn {
    background-color: #00A63E;
    color: white;
}

.btn-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    object-fit: contain;
    color: white;
}

/* History Sidebar */
.history-container {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 20px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.history-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
}

.history-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    object-fit: contain;
}

.clear-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s;
}

.clear-btn:hover {
    opacity: 0.9;
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.history-item:last-child {
    border-bottom: none;
}

.history-info {
    display: flex;
    flex-direction: column;
}

.history-name {
    font-size: 14px;
    font-family: 'Tiro Bangla', serif;
    color: var(--text-color);
}

.history-number {
    font-size: 12px;
    color: var(--light-text);
    margin-top: 2px;
}

.history-time {
    font-size: 12px;
    color: #999;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-buttons {
        width: 100%;
        justify-content: space-around;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .card {
        padding: 15px;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .main-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 15px;
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    .header-button {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .logo-container span {
        font-size: 18px;
    }
}