/* Common Styles for Toolset */
body {
    background-color: #f2f2f2;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

/* Tool Container (White Card) */
.tool-container {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
    margin-bottom: 20px;
    min-height: calc(100vh - 40px);
    overflow: hidden; /* For header border-radius */
    padding: 0; /* Remove padding to let header stretch */
}

/* Page Header inside Tool */
.tool-header {
    padding: 20px 30px;
    color: #fff;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}
.tool-header-icon {
    font-size: 24px;
    margin-right: 15px;
    background: rgba(255,255,255,0.2);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 8px;
}
.tool-header-content {
    flex: 1;
}
.tool-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    border-left: none; /* Remove old border */
    padding-left: 0;
    line-height: 1.2;
    margin-bottom: 5px;
}
.tool-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    margin-top: 0;
    padding-left: 0;
}

/* Tool Body Content Wrapper */
.tool-body {
    padding: 0 30px 30px 30px;
}

/* Input/Output Areas */
.layui-textarea {
    resize: none;
    border-color: #e6e6e6;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
}
.layui-textarea:focus {
    border-color: #009688 !important;
}

/* Dashboard Grid Styles */
.dashboard-grid .layui-card {
    border: none;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
    transition: all .3s;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
}
.dashboard-grid .layui-card:hover {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.dashboard-card-header {
    padding: 15px;
    color: #fff;
    display: flex;
    align-items: center;
}
.dashboard-card-icon {
    font-size: 32px;
    margin-right: 15px;
    opacity: 0.9;
}
.dashboard-card-title {
    font-size: 16px;
    font-weight: bold;
}
.dashboard-card-body {
    padding: 15px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    min-height: 60px;
}
.tag-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 2px;
    background: rgba(255,255,255,0.2);
    margin-top: 5px;
}

/* Gradients for Tool Cards - Replicating Reference Image Style */
.bg-gradient-blue { background: linear-gradient(135deg, #4481eb 0%, #04befe 100%); }
.bg-gradient-purple { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.bg-gradient-green { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.bg-gradient-orange { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%); }
.bg-gradient-cyan { background: linear-gradient(135deg, #00c6fb 0%, #005bea 100%); }
.bg-gradient-red { background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%); }
.bg-gradient-teal { background: linear-gradient(135deg, #20E2D7 0%, #F9FEA5 100%); }
.bg-gradient-indigo { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

/* Tool Card Specific Overrides for Dashboard */
.tool-card {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}
.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.tool-card-header {
    padding: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 74px;
}
.tool-card-icon {
    font-size: 40px;
    opacity: 0.9;
}
.tool-card-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.tool-card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tool-card-tag {
    font-size: 12px;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    white-space: nowrap;
}
.tool-card-body {
    padding: 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    height: 80px;
    overflow: hidden;
}

/* Gradients */
.bg-blue { background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%); }
.bg-green { background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%); }
.bg-orange { background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%); }
.bg-purple { background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%); }
.bg-cyan { background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%); }
.bg-pink { background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%); }
.bg-teal { background: linear-gradient(135deg, #009688 0%, #00796B 100%); }
.bg-indigo { background: linear-gradient(135deg, #3F51B5 0%, #303F9F 100%); }

/* Sidebar Tweaks (for index.html) */
.layui-layout-admin .layui-header {
    background-color: #fff;
    color: #333;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
    border-bottom: 1px solid #eee;
}
.layui-layout-admin .layui-logo {
    color: #009688;
    font-weight: bold;
    box-shadow: none;
}
.layui-nav .layui-nav-item a {
    color: #666;
}
.layui-nav .layui-nav-item a:hover {
    color: #009688;
}
.layui-nav .layui-this a {
    color: #009688 !important;
}
.layui-nav-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}
.layui-side-scroll {
    background-color: #fff;
    border-right: 1px solid #eee;
}
.layui-nav-tree {
    background-color: #fff;
    color: #333;
}
.layui-nav-tree .layui-nav-item a {
    color: #333;
}
.layui-nav-tree .layui-nav-item a:hover {
    background-color: #f2f2f2;
}
.layui-nav-tree .layui-this > a, .layui-nav-tree .layui-nav-child dd.layui-this a, .layui-nav-tree .layui-this a:hover {
    background-color: #e6f7f5;
    color: #009688;
    border-left: 3px solid #009688;
}
.layui-nav-tree .layui-nav-bar {
    background-color: #009688;
}
.layui-nav-itemed > a {
    color: #333 !important;
}
