/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
}

/* Gmail Header Styles */
.gmail-header {
    background-color: #4285f4;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    margin-right: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.search-bar {
    display: flex;
    align-items: center;
}

.search-bar input {
    padding: 8px;
    border: none;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 14px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.search-button {
    background-color: #f8f9fa;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Gmail Navigation Styles */
.gmail-nav {
    background-color: #f8f9fa;
    padding: 10px 20px;
}

.gmail-nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
}

.gmail-nav li {
    margin: 0 16px;
}

/* Button Styles */
.btn, .btn-primary {
    background-color: #4285f4;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #0f9d58;
}

.btn:hover {
    background-color: #357cbf;
}

/* Navigation Button Styles */
.gmail-nav ul li a {
    text-decoration: none;
    color: #555;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.gmail-nav ul li a:hover {
    background-color: #f0f0f0;
}

/* Content Styles */
.content {
    display: flex;
}

.email-list {
    flex: 1;
    border-right: 1px solid #ccc;
    padding: 20px;
}

.email-item {
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
    transition: background-color 0.2s;
}

.email-item:hover {
    background-color: #f0f0f0;
}

.sender {
    font-weight: bold;
}

.subject {
    color: #333;
}

.date {
    color: #777;
}

.email-content {
    flex: 2;
    padding: 20px;
}

.email-subject {
    font-size: 24px;
    font-weight: bold;
}

.email-sender {
    color: #555;
}

.email-date {
    color: #777;
}

.email-body {
    margin-top: 20px;
    line-height: 1.6;
}

/* Gmail Left Sidebar Styles */
.gmail-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    grid-gap: 20px;
}

.gmail-left-sidebar {
    background-color: #f8f9fa;
    padding: 20px;
}

/* Sidebar Styles */
.gmail-aside {
    flex: 1;
    background-color: #f8f9fa;
    padding: 20px;
    border-right: 1px solid #ccc;
}

.sidebar-content {
    font-size: 16px;
}

.sidebar-content h2 {
    color: #4285f4; /* Use Gmail's blue color for headings */
    font-size: 20px;
    border-bottom: 2px solid #4285f4; /* Add an underline */
    padding-bottom: 10px;
    margin-top: 0;
}

.sidebar-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
    display: flex; /* Display the list items horizontally */
    flex-direction: row; /* Set the direction to horizontal */
    justify-content: space-between; /* Add space between list items */
}

.sidebar-content li {
    margin: 0;
}

.sidebar-content a {
    text-decoration: none;
    color: #555;
    padding: 10px 20px; /* Add spacing around each item */
    border-radius: 4px; /* Add rounded corners */
    transition: background-color 0.2s, color 0.2s; /* Add transitions for background and text color */
}

.sidebar-content a:hover {
    background-color: #4285f4; /* Change background color on hover to Gmail's blue color */
    color: #fff; /* Change text color to white on hover */
}

/* Sidebar Styles */
#sidebar {
    min-width: 250px;
    max-width: 250px;
    height: 100%;
    position: fixed;
    top: 0;
    left: -250px;
    background-color: #2c3e50;
    transition: all 0.3s;
    color: #ecf0f1;
    overflow-y: auto;
}

#sidebar.active {
    left: 0;
}

#sidebar .sidebar-header {
    text-align: center;
    padding: 20px;
    background-color: #233140;
}

#sidebar .sidebar-header h3 {
    color: #ecf0f1;
    font-size: 24px;
}

#sidebar ul.components {
    padding: 20px;
}

#sidebar ul li {
    padding: 10px;
    font-size: 1.2em;
    display: block;
}

#sidebar ul li a {
    color: #ecf0f1;
    text-decoration: none;
}

#sidebar ul li:hover {
    background: #34495e;
}

#sidebar.active ul li:hover {
    background: #34495e;
}

/* Content Styles */
.content {
    width: 100%;
    padding: 15px;
    background-color: #ecf0f1;
}

/* Toggle Sidebar Button Styles */
#sidebarCollapse {
    background-color: #34495e;
    color: #ecf0f1;
    cursor: pointer;
    border: none;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    position: absolute;
    right: 10px;
    top: 10px;
}

#sidebarCollapse i {
    font-size: 1.2em;
}

#sidebarCollapse span {
    margin-left: 10px;
}

#sidebarCollapse:hover {
    background-color: #2c3e50;
}

/* Style email items to look like buttons */
.email-item {
    padding: 10px 20px;
    border-radius: 4px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

/* Add a background color and shadow on hover with animation */
.email-item:hover {
    cursor: pointer;
    background-color: #e0e0e0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}

/* Header Styles */
.gmail-header {
    background-color: #4285f4;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    margin-right: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.search-bar {
    display: flex;
    align-items: center;
}

.search-bar input {
    padding: 8px;
    border: none;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 14px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.search-button {
    background-color: #f8f9fa;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Navigation Button Styles */
.btn {
    background-color: #4285f4;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #0f9d58;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #357cbf;
}

/* Main Content Styles */
.main-content {
    padding: 20px;
    background-color: #fff;
    margin: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.main-content h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.main-content p {
    font-size: 16px;
    color: #555;
}

/* Featured Content Styles */
.featured-content {
    padding: 20px;
    background-color: #fff;
    margin: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.featured-content h2 {
    font-size: 20px;
    color: #4285f4;
    margin-bottom: 10px;
}

.featured-emails {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #ccc;
    padding-top: 10px;
}

.featured-email {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-right: 1px solid #ccc;
}

.featured-email:last-child {
    border-right: none;
}

.featured-email .sender {
    font-weight: bold;
    color: #4285f4;
}

.featured-email .subject {
    color: #333;
}

.featured-email .date {
    color: #777;
}

/* More Content Styles */
.more-content {
    padding: 20px;
    background-color: #fff;
    margin: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.more-content h2 {
    font-size: 20px;
    color: #4285f4;
    margin-bottom: 10px;
}

.more-content p {
    font-size: 16px;
    color: #555;
}

/* Add this CSS to style the profile section */
.profile-section {
    background-color: #fff;
    padding: 20px;
    margin: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.profile-section h2 {
    font-size: 20px;
    color: #4285f4;
    margin-bottom: 10px;
}

#profile-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 10px;
}

label {
    color: #555;
    margin-right: 5px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    padding: 8px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
}

#edit-profile-btn,
#save-profile-btn {
    background-color: #0f9d58;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
}

#edit-profile-btn:hover,
#save-profile-btn:hover {
    background-color: #0c8f50;
}

.message {
    background-color: #36393f;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
    animation: fadeIn 0.5s;
}
.user {
    font-weight: bold;
    color: #7289da;
}
.message-text {
    margin-left: 10px;
}
.message-time {
    color: #888;
    font-size: 0.8em;
}
.message-buttons {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}
.message-button {
    background-color: #7289da;
    color: #fff;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.3s;
}
.message-button:hover {
    background-color: #556e9c;
}
.reply-button {
    background-color: #5eb95e;
}
#menu-icon {
    font-size: 24px;
    position: absolute;
    top: 10px;
    left: 10px;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s;
}
#menu-icon:hover {
    color: #556e9c;
}
#close-button {
    font-size: 24px;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s;
}
#close-button:hover {
    color: #ff5c5c;
}
/* Additional styling for buttons */
.message-buttons {
    text-align: right;
}
.more-messages {
    text-align: center;
    margin-top: 20px;
}
/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
#reply-form {
    display: none;
    background-color: #36393f;
    border-radius: 5px;
    padding: 10px;
    transition: opacity 0.3s, transform 0.3s;
}

#reply-form.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

#reply-form h3 {
    color: #fff;
}

#reply-form textarea {
    width: 100%;
    padding: 5px;
    margin: 5px 0;
    background-color: #2f3136;
    border: none;
    color: #fff;
}

#reply-form button {
    background-color: #7289da;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

#reply-form button:hover {
    background-color: #556e9c;
}