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

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background-color: #f5f9ff;
    color: #333333;
    margin: 0;
    height: 100vh;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 240px;
    background-color: #ffffff;
    border-right: 1px solid #e0e9f5;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.logo {
    padding: 25px 20px;
    font-size: 20px;
    font-weight: 700;
    color: #2c4b8c;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e0e9f5;
}

.logo i {
    margin-right: 10px;
    color: #4b83e8;
}

.sidebar nav {
    flex-grow: 1;
    padding: 20px 0;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    padding: 12px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    color: #5a6c8f;
}

.sidebar li i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.sidebar li:hover {
    background-color: #f0f5ff;
    color: #4b83e8;
}

.sidebar li.active {
    background-color: #eaf2ff;
    color: #4b83e8;
    border-left: 4px solid #4b83e8;
}

.sidebar-footer {
    padding: 15px 25px;
    border-top: 1px solid #e0e9f5;
    color: #5a6c8f;
    font-size: 14px;
    cursor: pointer;
}

.sidebar-footer:hover {
    color: #4b83e8;
}

/* Main Content Styling */
.main-content {
    flex-grow: 1;
    padding: 0 20px 20px;
    overflow-y: auto;
    background-color: #f5f9ff;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e9f5;
}

.header h2 {
    color: #2c4b8c;
    font-weight: 600;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #5a6c8f;
}

.avatar {
    width: 36px;
    height: 36px;
    background-color: #e0e9f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b83e8;
}

.container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.upload-card, .result-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 300px;
}

.upload-card {
    text-align: center;
}

.upload-card h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c4b8c;
}

.subtitle {
    color: #5a6c8f;
    margin-bottom: 25px;
    font-size: 14px;
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px dashed #6b9eff;
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #f5f9ff;
}

.upload-area:hover {
    background-color: #eaf2ff;
}

.upload-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #4b83e8;
}

.upload-text {
    margin-bottom: 10px;
    font-size: 15px;
    color: #5a6c8f;
}

input[type="file"] {
    display: none;
}

.file-name {
    color: #6b88b5;
    margin-top: 10px;
    font-size: 14px;
    font-style: italic;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #4b83e8;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button:hover {
    background-color: #3d74d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(75, 131, 232, 0.2);
}

button:active {
    transform: translateY(0);
}

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

.result-header h3 {
    color: #2c4b8c;
    font-weight: 600;
}

.timestamp {
    color: #5a6c8f;
    font-size: 14px;
}

.image-preview {
    width: 100%;
    height: 200px;
    background-color: #f5f9ff;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.result-container {
    margin-top: 15px;
    text-align: left;
    background-color: #f5f9ff;
    border-radius: 6px;
    padding: 5px;
    border: 1px solid #e0e9f5;
}

.result-content {
    padding: 10px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 5px;
}

.result-item:hover {
    background-color: #eaf2ff;
}

.prediction-name {
    font-weight: 500;
    color: #2c4b8c;
}

.prediction-confidence {
    color: #4b83e8;
    font-weight: 600;
}

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

.action-btn {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    background-color: #f0f5ff;
    color: #4b83e8;
    border: 1px solid #d0e0ff;
}

.action-btn:hover {
    background-color: #e0ebff;
    transform: translateY(-1px);
}

.recent-activity {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.recent-activity h3 {
    color: #2c4b8c;
    font-weight: 600;
    margin-bottom: 15px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f5ff;
}

.activity-item:hover {
    background-color: #f5f9ff;
}

.activity-icon {
    width: 36px;
    height: 36px;
    background-color: #eaf2ff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b83e8;
    margin-right: 15px;
}

.activity-details {
    display: flex;
    flex-direction: column;
}

.activity-title {
    font-weight: 500;
    color: #2c4b8c;
}

.activity-time {
    font-size: 12px;
    color: #5a6c8f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e0e9f5;
    }
    
    .container {
        flex-direction: column;
    }
    
    .upload-card, .result-card {
        width: 100%;
    }
}
