/* General Styles */
:root {
    --primary-color: #00897b;
    --primary-dark: #00695c;
    --text-light: #ffffff;
    --text-dark: #333333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f5f5f5;
}

.navbar {
    background-color: var(--primary-color);
    padding: 1rem 0;
}

.navbar-brand, .nav-link {
    color: var(--text-light) !important;
}

.tool-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 0 5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.header-content {
    position: relative;
    z-index: 2;
}

.logo-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tool-logo {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-right: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

.header-curve {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #f5f5f5;
    clip-path: ellipse(60% 60% at 50% 100%);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.tool-header h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 600;
}

.tool-header .lead {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

.converter-card {
    background: white;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
}

.form-select, .form-control {
    border: 1px solid #ddd;
    padding: 0.75rem;
    border-radius: 4px;
}

.form-select:focus, .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 137, 123, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.result-container {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.result-text {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.input-group .btn {
    padding: 0.75rem 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tool-header {
        padding: 2rem 0 4rem;
    }
    
    .tool-header h1 {
        font-size: 2rem;
    }

    .tool-logo {
        font-size: 2rem;
    }

    .header-curve {
        height: 40px;
    }
}

/* Tool Container */
.tool-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
}

/* Results Section */
#results {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
}

.display-4 {
    color: #2c3e50;
    font-weight: 600;
}

/* Common Conversions */
.quick-convert {
    text-align: left;
    white-space: normal;
    height: auto;
    padding: 0.75rem;
}

/* History Table */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: #495057;
}

.table td {
    vertical-align: middle;
}

/* Unit Information */
#unitInfo {
    background-color: #f8f9fa;
    border-radius: 8px;
}

.alert-info {
    background-color: #e3f2fd;
    border-color: #b3e5fc;
    color: #0c5460;
}

/* Features Section */
.features-section .card {
    height: 100%;
}

.features-section .card-body {
    text-align: center;
}

.features-section i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-container {
        padding: 10px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .table-responsive {
        margin-bottom: 1rem;
    }
}

/* Tool Icon */
.tool-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 15px;
    border-radius: 50%;
    background-color: rgba(0, 137, 123, 0.1);
}

.tool-card:hover .tool-icon {
    transform: translateY(-5px);
    background-color: rgba(0, 137, 123, 0.2);
    box-shadow: 0 5px 15px rgba(0, 137, 123, 0.2);
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #28a745;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Category Title and Badge */
.category-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0;
}

.category-badge {
    background-color: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
} 